]> granicus.if.org Git - python/commitdiff
Silence warning about getdefaulttimeout in PyMethodDef.
authorGuido van Rossum <guido@python.org>
Thu, 18 Jul 2002 21:11:26 +0000 (21:11 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 18 Jul 2002 21:11:26 +0000 (21:11 +0000)
Modules/socketmodule.c

index 9a3951681d5e0ccdb8043650e1e93ad297d495ac..99e5b6250b929069dcd3910a3e559c85c408557c 100644 (file)
@@ -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},