summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-26 00:37:45 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-26 00:37:45 (GMT)
commitf8803dd6c3089f4dcbda061fd567acd55995d9f4 (patch)
treea21475720da7c9b3bf2657337565f0995fb7d2f9 /Modules/posixmodule.c
parent39cb5ce85dfc99bccd9d7a5df280d92de1d31f33 (diff)
downloadcpython-f8803dd6c3089f4dcbda061fd567acd55995d9f4.zip
cpython-f8803dd6c3089f4dcbda061fd567acd55995d9f4.tar.gz
cpython-f8803dd6c3089f4dcbda061fd567acd55995d9f4.tar.bz2
uname 64-bit fix
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 8631e64..7f20a8f 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -544,6 +544,7 @@ posix_utime(self, args)
object *args;
{
char *path;
+ long atime, mtime;
int res;
#ifdef HAVE_UTIME_H
@@ -558,8 +559,10 @@ posix_utime(self, args)
#define UTIME_ARG buf
#endif /* HAVE_UTIME_H */
- if (!getargs(args, "(s(ll))", &path, &ATIME, &MTIME))
+ if (!getargs(args, "(s(ll))", &path, &atime, &mtime))
return NULL;
+ ATIME = atime;
+ MTIME = utime;
BGN_SAVE
res = utime(path, UTIME_ARG);
END_SAVE