Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc07ec1

Browse files
committed
Add missing typecast.
1 parent f4a4fb9 commit cc07ec1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/pwdmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ static PyMethodDef pwd_methods[] = {
149149
{"getpwuid", pwd_getpwuid, METH_OLDARGS, pwd_getpwuid__doc__},
150150
{"getpwnam", pwd_getpwnam, METH_OLDARGS, pwd_getpwnam__doc__},
151151
#ifdef HAVE_GETPWENT
152-
{"getpwall", pwd_getpwall, METH_NOARGS, pwd_getpwall__doc__},
152+
{"getpwall", (PyCFunction)pwd_getpwall,
153+
METH_NOARGS, pwd_getpwall__doc__},
153154
#endif
154155
{NULL, NULL} /* sentinel */
155156
};

0 commit comments

Comments
 (0)