From db79966c497a4b7936f28a5d87a54f56c52b76e5 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 5 Jul 2002 21:39:33 +0000 Subject: * port-sockets.h (SOCKET_WRITEV) [!_WIN32]: Use TMP after setting it, to silence compiler warnings git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14606 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/fake-addrinfo.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/include/fake-addrinfo.h') diff --git a/src/include/fake-addrinfo.h b/src/include/fake-addrinfo.h index c5083bcd7f..8d80b5b329 100644 --- a/src/include/fake-addrinfo.h +++ b/src/include/fake-addrinfo.h @@ -128,8 +128,8 @@ gai_strerror (int code) /*@*/; #endif #ifdef _WIN32 -#define HAVE_GETADDRINFO -#define HAVE_GETNAMEINFO +#define HAVE_GETADDRINFO 1 +#define HAVE_GETNAMEINFO 1 #endif @@ -379,7 +379,7 @@ int getnameinfo (const struct sockaddr *addr, socklen_t len, #define HAVE_FAKE_GETADDRINFO /* was not originally HAVE_GETADDRINFO */ #define HAVE_GETADDRINFO #undef HAVE_GETNAMEINFO -#define HAVE_GETNAMEINFO +#define HAVE_GETNAMEINFO 1 static char *gai_strerror (int code); @@ -417,6 +417,7 @@ char *gai_strerror (int code); #endif #ifdef NEED_FAKE_GETADDRINFO +#include /* for strspn */ static inline int translate_h_errno (int h); @@ -623,7 +624,8 @@ fake_getnameinfo (const struct sockaddr *sa, socklen_t len, #endif } else { int herr; - GET_HOST_BY_ADDR(&sinp->sin_addr, sizeof (struct in_addr), + GET_HOST_BY_ADDR((const char *) &sinp->sin_addr, + sizeof (struct in_addr), sa->sa_family, hp, herr); if (hp == 0) { if (herr == NO_ADDRESS && !(flags & NI_NAMEREQD)) /* ??? */ -- cgit