summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-13 10:08:01 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-13 10:08:01 (GMT)
commit3ad2d70947a1b6c4b76c2029213e654c1b6ebc4e (patch)
treead7e6c6bc6a868bcbcff2eac800e3977020060e2 /Modules
parent258e4d372f25bd0182ae20d2af899156bdc6a71d (diff)
downloadcpython-3ad2d70947a1b6c4b76c2029213e654c1b6ebc4e.zip
cpython-3ad2d70947a1b6c4b76c2029213e654c1b6ebc4e.tar.gz
cpython-3ad2d70947a1b6c4b76c2029213e654c1b6ebc4e.tar.bz2
Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/selectmodule.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index 603a2b6..1bccc5f 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -380,11 +380,10 @@ static PyObject *
poll_register(pollObject *self, PyObject *args)
{
PyObject *o, *key, *value;
- int fd;
- short events = POLLIN | POLLPRI | POLLOUT;
+ int fd, events = POLLIN | POLLPRI | POLLOUT;
int err;
- if (!PyArg_ParseTuple(args, "O|h:register", &o, &events)) {
+ if (!PyArg_ParseTuple(args, "O|i:register", &o, &events)) {
return NULL;
}