Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7aec4a2

Browse files
author
Andrew MacIntyre
committed
work around name clash with OS/2 TCPIP routine sock_init()
1 parent 3fcd452 commit 7aec4a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/socketmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,7 +2057,7 @@ sock_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
20572057

20582058
/*ARGSUSED*/
20592059
static int
2060-
sock_init(PyObject *self, PyObject *args, PyObject *kwds)
2060+
sock_initobj(PyObject *self, PyObject *args, PyObject *kwds)
20612061
{
20622062
PySocketSockObject *s = (PySocketSockObject *)self;
20632063
SOCKET_T fd;
@@ -2133,7 +2133,7 @@ static PyTypeObject sock_type = {
21332133
0, /* tp_descr_get */
21342134
0, /* tp_descr_set */
21352135
0, /* tp_dictoffset */
2136-
sock_init, /* tp_init */
2136+
sock_initobj, /* tp_init */
21372137
0, /* set below */ /* tp_alloc */
21382138
sock_new, /* tp_new */
21392139
0, /* set below */ /* tp_free */

0 commit comments

Comments
 (0)