]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
getlonglongargs --> getlonglongarg
authorGuido van Rossum <guido@python.org>
Tue, 10 Sep 1991 14:56:48 +0000 (14:56 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 10 Sep 1991 14:56:48 +0000 (14:56 +0000)
Fixed type error in argument of newopenfileobject.

Modules/posixmodule.c

index 204918be4982706ac12245e657eef96931c36b40..ec3e67de32db8f571f2da4a05487d8480fc0ecda 100644 (file)
@@ -413,7 +413,7 @@ posix_utime(self, args)
                return NULL;
        }
        if (!getstrarg(gettupleitem(args, 0), &path) ||
-           !getlonglongargs(gettupleitem(args, 1), &ATIME, &MTIME))
+           !getlonglongarg(gettupleitem(args, 1), &ATIME, &MTIME))
                return NULL;
        if (utime(getstringvalue(path), UTIME_ARG) < 0)
                return posix_error();
@@ -574,7 +574,8 @@ posix_popen(self, args)
        /* From now on, ignore SIGPIPE and let the error checking
           do the work. */
        (void) signal(SIGPIPE, SIG_IGN);
-       return newopenfileobject(fp, name, mode, pclose);
+       return newopenfileobject(fp, getstringvalue(name),
+                                getstringvalue(mode), pclose);
 }
 
 static object *