commit | c925b1538a8b6efb752579b416c29a7738218b11 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Sat Jul 21 09:42:15 2001 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Sat Jul 21 09:42:15 2001 +0000 |
tree | 6582f3108870174199eb83b17d7d03247ea6917b | |
parent | 20f51a7b3845fc8534d4f89cbf847dded027565f [diff] [blame] |
Silence warnings in MSVC++: hide unused variables, add constness back to inet_pton/ntop, convert htons argument to u_short.
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 @@ 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];