Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 24303:93434bc0899d legacy-trunk
Silence warning about getdefaulttimeout in PyMethodDef.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 18 Jul 2002 21:11:26 +0000 |
| parents | 640370f08e2a |
| children | 428cbbf05639 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Thu Jul 18 20:58:57 2002 +0000 +++ b/Modules/socketmodule.c Thu Jul 18 21:11:26 2002 +0000 @@ -2820,7 +2820,7 @@ 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},
