Commit 38ca8ace authored by Guido van Rossum's avatar Guido van Rossum

getlonglongargs --> getlonglongarg

Fixed type error in argument of newopenfileobject.
parent eb8390e0
...@@ -413,7 +413,7 @@ posix_utime(self, args) ...@@ -413,7 +413,7 @@ posix_utime(self, args)
return NULL; return NULL;
} }
if (!getstrarg(gettupleitem(args, 0), &path) || if (!getstrarg(gettupleitem(args, 0), &path) ||
!getlonglongargs(gettupleitem(args, 1), &ATIME, &MTIME)) !getlonglongarg(gettupleitem(args, 1), &ATIME, &MTIME))
return NULL; return NULL;
if (utime(getstringvalue(path), UTIME_ARG) < 0) if (utime(getstringvalue(path), UTIME_ARG) < 0)
return posix_error(); return posix_error();
...@@ -574,7 +574,8 @@ posix_popen(self, args) ...@@ -574,7 +574,8 @@ posix_popen(self, args)
/* From now on, ignore SIGPIPE and let the error checking /* From now on, ignore SIGPIPE and let the error checking
do the work. */ do the work. */
(void) signal(SIGPIPE, SIG_IGN); (void) signal(SIGPIPE, SIG_IGN);
return newopenfileobject(fp, name, mode, pclose); return newopenfileobject(fp, getstringvalue(name),
getstringvalue(mode), pclose);
} }
static object * static object *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment