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

Skip to content

Commit 32c575d

Browse files
committed
Left-aligned preprocessor directives and changed C++ comments to C
comments.
1 parent c5a0f53 commit 32c575d

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Modules/socketmodule.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -939,11 +939,11 @@ BUILD_FUNC_DEF_2(PySocketSock_recvfrom,PySocketSockObject *,s, PyObject *,args)
939939
Py_BEGIN_ALLOW_THREADS
940940
n = recvfrom(s->sock_fd, PyString_AsString(buf), len, flags,
941941
#ifndef MS_WINDOWS
942-
#if defined(PYOS_OS2)
942+
#if defined(PYOS_OS2)
943943
(struct sockaddr *)addrbuf, &addrlen
944-
#else
944+
#else
945945
(ANY *)addrbuf, &addrlen
946-
#endif
946+
#endif
947947
#else
948948
(struct sockaddr *)addrbuf, &addrlen
949949
#endif
@@ -1465,14 +1465,14 @@ OS2init()
14651465
int rc = sock_init();
14661466

14671467
if (rc == 0) {
1468-
atexit(OS2cleanup);
1469-
return 1; // Indicate Success
1468+
atexit(OS2cleanup);
1469+
return 1; /* Indicate Success */
14701470
}
14711471

14721472
sprintf(reason, "OS/2 TCP/IP Error# %d", sock_errno());
14731473
PyErr_SetString(PyExc_ImportError, reason);
14741474

1475-
return 0; // Indicate Failure
1475+
return 0; /* Indicate Failure */
14761476
}
14771477

14781478
#endif /* PYOS_OS2 */
@@ -1510,13 +1510,13 @@ initsocket()
15101510
return;
15111511
m = Py_InitModule("_socket", PySocket_methods);
15121512
#else
1513-
#if defined(__TOS_OS2__)
1513+
#if defined(__TOS_OS2__)
15141514
if (!OS2init())
15151515
return;
15161516
m = Py_InitModule("_socket", PySocket_methods);
1517-
#else
1517+
#else
15181518
m = Py_InitModule("socket", PySocket_methods);
1519-
#endif
1519+
#endif
15201520
#endif
15211521
d = PyModule_GetDict(m);
15221522
PySocket_Error = PyErr_NewException("socket.error", NULL, NULL);

0 commit comments

Comments
 (0)