diff options
author | Guido van Rossum <guido@python.org> | 2002-07-18 21:11:26 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-07-18 21:11:26 (GMT) |
commit | 1693ba8bf83d5d2036931e79b519cddaa352b2f0 (patch) | |
tree | 94eaf95ab367344cede43eea144ef157cb86e925 /Modules/socketmodule.c | |
parent | 7fa4bfa1732781700c851db5386a2ef5c9406b9d (diff) | |
download | cpython-1693ba8bf83d5d2036931e79b519cddaa352b2f0.zip cpython-1693ba8bf83d5d2036931e79b519cddaa352b2f0.tar.gz cpython-1693ba8bf83d5d2036931e79b519cddaa352b2f0.tar.bz2 |
Silence warning about getdefaulttimeout in PyMethodDef.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 9a39516..99e5b62 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -2820,7 +2820,7 @@ static PyMethodDef socket_methods[] = { METH_VARARGS, getaddrinfo_doc}, {"getnameinfo", socket_getnameinfo, METH_VARARGS, getnameinfo_doc}, - {"getdefaulttimeout", socket_getdefaulttimeout, + {"getdefaulttimeout", (PyCFunction)socket_getdefaulttimeout, METH_NOARGS, getdefaulttimeout_doc}, {"setdefaulttimeout", socket_setdefaulttimeout, METH_O, setdefaulttimeout_doc}, |