summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-07-27 20:16:02 +1000
committerDamien Miller <djm@mindrot.org>2013-07-27 20:16:02 +1000
commit12e32c863c46142447988bbe39b8a69e65683833 (patch)
treef6fd2c0f5f0ba2a72df98cc7c04646347918b39a
parent9b74f402568e135995a5730edd074136be93f7bd (diff)
downloadpy-bcrypt-12e32c863c46142447988bbe39b8a69e65683833.tar.gz
fix compilation failure and warning mentioned in issue#2
-rw-r--r--bcrypt/bcrypt_python.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bcrypt/bcrypt_python.c b/bcrypt/bcrypt_python.c
index 6154f5c..96ddfd1 100644
--- a/bcrypt/bcrypt_python.c
+++ b/bcrypt/bcrypt_python.c
@@ -38,7 +38,7 @@ static PyObject *
bcrypt_encode_salt(PyObject *self, PyObject *args, PyObject *kw_args)
{
static char *keywords[] = { "csalt", "log_rounds", NULL };
- char *csalt = NULL;
+ u_int8_t *csalt = NULL;
int csaltlen = -1;
long log_rounds = -1;
char ret[64];
@@ -68,7 +68,7 @@ bcrypt_hashpw(PyObject *self, PyObject *args, PyObject *kw_args)
{
static char *keywords[] = { "password", "salt", NULL };
char *password = NULL, *salt = NULL;
- char hashed[128], char *password_copy, *salt_copy;
+ char hashed[128], *password_copy, *salt_copy;
int ret;
if (!PyArg_ParseTupleAndKeywords(args, kw_args, "ss:hashpw", keywords,