summaryrefslogtreecommitdiffstats
path: root/Modules/getnameinfo.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-07-21 09:42:15 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-07-21 09:42:15 (GMT)
commitc925b1538a8b6efb752579b416c29a7738218b11 (patch)
tree6582f3108870174199eb83b17d7d03247ea6917b /Modules/getnameinfo.c
parent20f51a7b3845fc8534d4f89cbf847dded027565f (diff)
downloadcpython-c925b1538a8b6efb752579b416c29a7738218b11.zip
cpython-c925b1538a8b6efb752579b416c29a7738218b11.tar.gz
cpython-c925b1538a8b6efb752579b416c29a7738218b11.tar.bz2
Silence warnings in MSVC++: hide unused variables, add constness back to
inet_pton/ntop, convert htons argument to u_short.
Diffstat (limited to 'Modules/getnameinfo.c')
-rw-r--r--Modules/getnameinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/getnameinfo.c b/Modules/getnameinfo.c
index 33d6ad3..475b531 100644
--- a/Modules/getnameinfo.c
+++ b/Modules/getnameinfo.c
@@ -98,7 +98,9 @@ getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
int family, len, i;
char *addr, *p;
u_long v4a;
+#ifdef INET6
u_char pfx;
+#endif
int h_error;
char numserv[512];
char numaddr[512];