summaryrefslogtreecommitdiff
path: root/lib/libc/net/freeaddrinfo.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-06-23 22:14:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-06-23 22:14:52 +0000
commit94cb0cb5a0a4a74038cd87166c4703feee3ffd27 (patch)
tree3d7f9bc454d26e3557633bbdfea1c1b774df2e3e /lib/libc/net/freeaddrinfo.c
parent1110193fcedc90491e4a71db91572efb27a707a8 (diff)
KNF
Diffstat (limited to 'lib/libc/net/freeaddrinfo.c')
-rw-r--r--lib/libc/net/freeaddrinfo.c16
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);
+ }
}