diff options
-rw-r--r-- | lib/libc/net/freeaddrinfo.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/libc/net/freeaddrinfo.c b/lib/libc/net/freeaddrinfo.c index a327ffb3915..cdabe14d095 100644 --- a/lib/libc/net/freeaddrinfo.c +++ b/lib/libc/net/freeaddrinfo.c @@ -33,13 +33,15 @@ #include <stdlib.h> #include <netdb.h> -void freeaddrinfo(struct addrinfo *ai) +void +freeaddrinfo(ai) + struct addrinfo *ai; { - struct addrinfo *p; + struct addrinfo *p; - while(ai) { - p = ai; - ai = ai->ai_next; - free((void *)p); - } + while (ai) { + p = ai; + ai = ai->ai_next; + free((void *)p); + } } |