]> granicus.if.org Git - python/commitdiff
Another int -> pid_t case
authorChristian Heimes <christian@cheimes.de>
Sun, 3 Feb 2008 19:51:13 +0000 (19:51 +0000)
committerChristian Heimes <christian@cheimes.de>
Sun, 3 Feb 2008 19:51:13 +0000 (19:51 +0000)
Modules/posixmodule.c

index 77d408468bd7d5020188cfa7b0353219f8505122..7c2cb12c43eda205d5d45388e8730766509643ea 100644 (file)
@@ -6067,7 +6067,8 @@ Return the process group associated with the terminal given by a fd.");
 static PyObject *
 posix_tcgetpgrp(PyObject *self, PyObject *args)
 {
-       int fd, pgid;
+       int fd;
+       pid_t pgid;
        if (!PyArg_ParseTuple(args, "i:tcgetpgrp", &fd))
                return NULL;
        pgid = tcgetpgrp(fd);