summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-03-29 14:57:59 (GMT)
committerGuido van Rossum <guido@python.org>1999-03-29 14:57:59 (GMT)
commitcf95b0f44a8104af2deae937686374c204c09740 (patch)
treea9bebe51c86500feb9d70473238d6ce3ed57a601 /Modules
parent2c4e009b6687dec6fc649ac3b988b93299b434d1 (diff)
downloadcpython-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')
-rw-r--r--Modules/shamodule.c6
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 = {