summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-25 12:56:38 (GMT)
committerThomas Wouters <thomas@python.org>2000-07-25 12:56:38 (GMT)
commit334fb8985bc126f62af65669150c30787eabddd9 (patch)
tree114a52660cda84eb69f1fe8c24d0df7458dbe875 /Modules/socketmodule.c
parentbf680266da23b0b95a03d2b7ea5da493d341a562 (diff)
downloadcpython-334fb8985bc126f62af65669150c30787eabddd9.zip
cpython-334fb8985bc126f62af65669150c30787eabddd9.tar.gz
cpython-334fb8985bc126f62af65669150c30787eabddd9.tar.bz2
Use 'void' directly instead of the ANY #define, now that all code is ANSI C.
Leave the actual #define in for API compatibility.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index e95e339..f146e8f 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -799,7 +799,7 @@ PySocketSock_setsockopt(PySocketSockObject *s, PyObject *args)
&level, &optname, &buf, &buflen))
return NULL;
}
- res = setsockopt(s->sock_fd, level, optname, (ANY *)buf, buflen);
+ res = setsockopt(s->sock_fd, level, optname, (void *)buf, buflen);
if (res < 0)
return PySocket_Err();
Py_INCREF(Py_None);
@@ -841,7 +841,7 @@ PySocketSock_getsockopt(PySocketSockObject *s, PyObject *args)
int flag = 0;
socklen_t flagsize = sizeof flag;
res = getsockopt(s->sock_fd, level, optname,
- (ANY *)&flag, &flagsize);
+ (void *)&flag, &flagsize);
if (res < 0)
return PySocket_Err();
return PyInt_FromLong(flag);
@@ -855,7 +855,7 @@ PySocketSock_getsockopt(PySocketSockObject *s, PyObject *args)
if (buf == NULL)
return NULL;
res = getsockopt(s->sock_fd, level, optname,
- (ANY *)PyString_AsString(buf), &buflen);
+ (void *)PyString_AsString(buf), &buflen);
if (res < 0) {
Py_DECREF(buf);
return PySocket_Err();
@@ -1230,7 +1230,7 @@ PySocketSock_recvfrom(PySocketSockObject *s, PyObject *args)
#if defined(PYOS_OS2)
(struct sockaddr *)addrbuf, &addrlen
#else
- (ANY *)addrbuf, &addrlen
+ (void *)addrbuf, &addrlen
#endif
#else
(struct sockaddr *)addrbuf, &addrlen