summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-07-18 21:11:26 (GMT)
committerGuido van Rossum <guido@python.org>2002-07-18 21:11:26 (GMT)
commit1693ba8bf83d5d2036931e79b519cddaa352b2f0 (patch)
tree94eaf95ab367344cede43eea144ef157cb86e925 /Modules
parent7fa4bfa1732781700c851db5386a2ef5c9406b9d (diff)
downloadcpython-1693ba8bf83d5d2036931e79b519cddaa352b2f0.zip
cpython-1693ba8bf83d5d2036931e79b519cddaa352b2f0.tar.gz
cpython-1693ba8bf83d5d2036931e79b519cddaa352b2f0.tar.bz2
Silence warning about getdefaulttimeout in PyMethodDef.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c2
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},