summaryrefslogtreecommitdiffstats
path: root/Modules/selectmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-13 10:08:55 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-13 10:08:55 (GMT)
commitcb1c4c8c22e27f0f7a01e1bb5ad78a804cf17c07 (patch)
tree75b313001ed27f8d378b84175f5f2dd6617965a2 /Modules/selectmodule.c
parent2748bc735ea7c8b2f72670d0f35715108fac0fe6 (diff)
parent3ad2d70947a1b6c4b76c2029213e654c1b6ebc4e (diff)
downloadcpython-cb1c4c8c22e27f0f7a01e1bb5ad78a804cf17c07.zip
cpython-cb1c4c8c22e27f0f7a01e1bb5ad78a804cf17c07.tar.gz
cpython-cb1c4c8c22e27f0f7a01e1bb5ad78a804cf17c07.tar.bz2
Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.
Diffstat (limited to 'Modules/selectmodule.c')
-rw-r--r--Modules/selectmodule.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index 3283bf7..1e7ba4c 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -375,11 +375,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;
}