diff options
author | Guido van Rossum <guido@python.org> | 1999-03-29 14:57:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-03-29 14:57:59 (GMT) |
commit | cf95b0f44a8104af2deae937686374c204c09740 (patch) | |
tree | a9bebe51c86500feb9d70473238d6ce3ed57a601 /Modules/shamodule.c | |
parent | 2c4e009b6687dec6fc649ac3b988b93299b434d1 (diff) | |
download | cpython-cf95b0f44a8104af2deae937686374c204c09740.zip cpython-cf95b0f44a8104af2deae937686374c204c09740.tar.gz cpython-cf95b0f44a8104af2deae937686374c204c09740.tar.bz2 |
Avoid warnings from AIX compiler. Reported by Vladimir (AIX is my
middlename) Marangozov, patch coded by Greg Stein.
Diffstat (limited to 'Modules/shamodule.c')
-rw-r--r-- | Modules/shamodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/shamodule.c b/Modules/shamodule.c index 06e58f0..e82de04 100644 --- a/Modules/shamodule.c +++ b/Modules/shamodule.c @@ -432,7 +432,7 @@ SHA_digest(self, args) SHAcopy(self, &temp); sha_final(digest, &temp); - return PyString_FromStringAndSize(digest, sizeof(digest)); + return PyString_FromStringAndSize((const char *)digest, sizeof(digest)); } static char SHA_hexdigest__doc__[] = @@ -503,7 +503,7 @@ static PyMethodDef SHA_methods[] = { static PyObject * SHA_getattr(self, name) - SHAobject *self; + PyObject *self; char *name; { if (strcmp(name, "blocksize")==0) @@ -511,7 +511,7 @@ SHA_getattr(self, name) if (strcmp(name, "digestsize")==0) return PyInt_FromLong(20); - return Py_FindMethod(SHA_methods, (PyObject *)self, name); + return Py_FindMethod(SHA_methods, self, name); } static PyTypeObject SHAtype = { |