summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-29 19:58:25 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-29 19:58:25 (GMT)
commitcc07ec17a3f07b695d5cdacaeb45e9fec43b44e5 (patch)
tree1b117f52f358a92886fbcee8414130a3d8ffb2a3
parentf4a4fb9a11804ea1e1123a2963c7275e2b9bd8f7 (diff)
downloadcpython-cc07ec17a3f07b695d5cdacaeb45e9fec43b44e5.zip
cpython-cc07ec17a3f07b695d5cdacaeb45e9fec43b44e5.tar.gz
cpython-cc07ec17a3f07b695d5cdacaeb45e9fec43b44e5.tar.bz2
Add missing typecast.
-rw-r--r--Modules/pwdmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c
index a52d45f..08c86d5 100644
--- a/Modules/pwdmodule.c
+++ b/Modules/pwdmodule.c
@@ -149,7 +149,8 @@ static PyMethodDef pwd_methods[] = {
{"getpwuid", pwd_getpwuid, METH_OLDARGS, pwd_getpwuid__doc__},
{"getpwnam", pwd_getpwnam, METH_OLDARGS, pwd_getpwnam__doc__},
#ifdef HAVE_GETPWENT
- {"getpwall", pwd_getpwall, METH_NOARGS, pwd_getpwall__doc__},
+ {"getpwall", (PyCFunction)pwd_getpwall,
+ METH_NOARGS, pwd_getpwall__doc__},
#endif
{NULL, NULL} /* sentinel */
};