diff options
author | Guido van Rossum <guido@python.org> | 2005-09-14 18:09:42 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2005-09-14 18:09:42 (GMT) |
commit | 8ee3e5aa9306a00573817e237bed4a482473e818 (patch) | |
tree | 6d5dc937d3b495c5295fe6c5c4b3e212ab5509c0 /Modules/pwdmodule.c | |
parent | 539c662f10b41d15f658cabfa03cc02902862adc (diff) | |
download | cpython-8ee3e5aa9306a00573817e237bed4a482473e818.zip cpython-8ee3e5aa9306a00573817e237bed4a482473e818.tar.gz cpython-8ee3e5aa9306a00573817e237bed4a482473e818.tar.bz2 |
- Changes donated by Elemental Security to make it work on AIX 5.3
with IBM's 64-bit compiler (SF patch #1284289). This also closes SF
bug #105470: test_pwd fails on 64bit system (Opteron).
Diffstat (limited to 'Modules/pwdmodule.c')
-rw-r--r-- | Modules/pwdmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c index 805d4d9..f418e43 100644 --- a/Modules/pwdmodule.c +++ b/Modules/pwdmodule.c @@ -102,9 +102,9 @@ See pwd.__doc__ for more on password database entries."); static PyObject * pwd_getpwuid(PyObject *self, PyObject *args) { - int uid; + unsigned int uid; struct passwd *p; - if (!PyArg_ParseTuple(args, "i:getpwuid", &uid)) + if (!PyArg_ParseTuple(args, "I:getpwuid", &uid)) return NULL; if ((p = getpwuid(uid)) == NULL) { PyErr_Format(PyExc_KeyError, |