work around name clash with OS/2 TCPIP routine sock_init()
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Thu, 13 Jun 2002 11:53:52 +0000 (11:53 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Thu, 13 Jun 2002 11:53:52 +0000 (11:53 +0000)
Modules/socketmodule.c

index e2d499a28ff7562f3af59dd4cf4a9d7836f58571..ff67c3dac81567a4fe43edecd1414bc9b481a09c 100644 (file)
@@ -2057,7 +2057,7 @@ sock_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
 
 /*ARGSUSED*/
 static int
-sock_init(PyObject *self, PyObject *args, PyObject *kwds)
+sock_initobj(PyObject *self, PyObject *args, PyObject *kwds)
 {
        PySocketSockObject *s = (PySocketSockObject *)self;
        SOCKET_T fd;
@@ -2133,7 +2133,7 @@ static PyTypeObject sock_type = {
        0,                                      /* tp_descr_get */
        0,                                      /* tp_descr_set */
        0,                                      /* tp_dictoffset */
-       sock_init,                              /* tp_init */
+       sock_initobj,                           /* tp_init */
        0,      /* set below */                 /* tp_alloc */
        sock_new,                               /* tp_new */
        0,      /* set below */                 /* tp_free */