diff options
author | Damien Miller <djm@mindrot.org> | 2013-07-27 20:16:02 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-07-27 20:16:02 +1000 |
commit | 12e32c863c46142447988bbe39b8a69e65683833 (patch) | |
tree | f6fd2c0f5f0ba2a72df98cc7c04646347918b39a | |
parent | 9b74f402568e135995a5730edd074136be93f7bd (diff) | |
download | py-bcrypt-12e32c863c46142447988bbe39b8a69e65683833.tar.gz |
fix compilation failure and warning mentioned in issue#2
-rw-r--r-- | bcrypt/bcrypt_python.c | 4 |
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, |