diff options
Diffstat (limited to 'src/port/getaddrinfo.c')
-rw-r--r-- | src/port/getaddrinfo.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/port/getaddrinfo.c b/src/port/getaddrinfo.c index c0e4b33e205..ff85db4b541 100644 --- a/src/port/getaddrinfo.c +++ b/src/port/getaddrinfo.c @@ -40,17 +40,17 @@ * Here we need to declare what the function pointers look like */ typedef int (__stdcall * getaddrinfo_ptr_t) (const char *nodename, - const char *servname, - const struct addrinfo * hints, - struct addrinfo ** res); + const char *servname, + const struct addrinfo *hints, + struct addrinfo **res); -typedef void (__stdcall * freeaddrinfo_ptr_t) (struct addrinfo * ai); +typedef void (__stdcall * freeaddrinfo_ptr_t) (struct addrinfo *ai); -typedef int (__stdcall * getnameinfo_ptr_t) (const struct sockaddr * sa, - int salen, - char *host, int hostlen, - char *serv, int servlen, - int flags); +typedef int (__stdcall * getnameinfo_ptr_t) (const struct sockaddr *sa, + int salen, + char *host, int hostlen, + char *serv, int servlen, + int flags); /* static pointers to the native routines, so we only do the lookup once. */ static getaddrinfo_ptr_t getaddrinfo_ptr = NULL; @@ -135,8 +135,8 @@ haveNativeWindowsIPv6routines(void) */ int getaddrinfo(const char *node, const char *service, - const struct addrinfo * hintp, - struct addrinfo ** res) + const struct addrinfo *hintp, + struct addrinfo **res) { struct addrinfo *ai; struct sockaddr_in sin, @@ -262,7 +262,7 @@ getaddrinfo(const char *node, const char *service, void -freeaddrinfo(struct addrinfo * res) +freeaddrinfo(struct addrinfo *res) { if (res) { @@ -354,7 +354,7 @@ gai_strerror(int errcode) * - No IPv6 support. */ int -getnameinfo(const struct sockaddr * sa, int salen, +getnameinfo(const struct sockaddr *sa, int salen, char *node, int nodelen, char *service, int servicelen, int flags) { |