summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-02-27 19:06:23 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-02-27 19:06:23 (GMT)
commite0387ec8b5a6d874cb859c85e5b40b89fb450703 (patch)
tree66efcd592e1730226c26bd767ea267675718e276
parent6968b056efdec8cf178901cf5bfcf65e1c8eac65 (diff)
downloadcpython-e0387ec8b5a6d874cb859c85e5b40b89fb450703.zip
cpython-e0387ec8b5a6d874cb859c85e5b40b89fb450703.tar.gz
cpython-e0387ec8b5a6d874cb859c85e5b40b89fb450703.tar.bz2
SF patch #1670209, Remove Py_PROTO from socket by Pete Shinners.
-rw-r--r--Modules/getaddrinfo.c10
-rw-r--r--Modules/getnameinfo.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/Modules/getaddrinfo.c b/Modules/getaddrinfo.c
index 4d19c34..5bcec2b 100644
--- a/Modules/getaddrinfo.c
+++ b/Modules/getaddrinfo.c
@@ -129,12 +129,12 @@ static struct gai_afd {
#define IN_LOOPBACKNET 127
#endif
-static int get_name Py_PROTO((const char *, struct gai_afd *,
+static int get_name(const char *, struct gai_afd *,
struct addrinfo **, char *, struct addrinfo *,
- int));
-static int get_addr Py_PROTO((const char *, int, struct addrinfo **,
- struct addrinfo *, int));
-static int str_isnumber Py_PROTO((const char *));
+ int);
+static int get_addr(const char *, int, struct addrinfo **,
+ struct addrinfo *, int);
+static int str_isnumber(const char *);
static char *ai_errlist[] = {
"success.",
diff --git a/Modules/getnameinfo.c b/Modules/getnameinfo.c
index d3c0ac5..0190a32 100644
--- a/Modules/getnameinfo.c
+++ b/Modules/getnameinfo.c
@@ -82,8 +82,8 @@ struct gni_sockinet {
#define ENI_SALEN 6
/* forward declaration to make gcc happy */
-int getnameinfo Py_PROTO((const struct sockaddr *, size_t, char *, size_t,
- char *, size_t, int));
+int getnameinfo(const struct sockaddr *, size_t, char *, size_t,
+ char *, size_t, int);
int
getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)