diff options
author | 2005-03-25 13:24:11 +0000 | |
---|---|---|
committer | 2005-03-25 13:24:11 +0000 | |
commit | db5b349cf7aa19c2b6169fbb65597f2e741714ab (patch) | |
tree | 3225f0ae035a80a4448da2c70fd7f41f085c275b /lib/libc/net/inet_ntoa.c | |
parent | whitespace (diff) | |
download | wireguard-openbsd-db5b349cf7aa19c2b6169fbb65597f2e741714ab.tar.xz wireguard-openbsd-db5b349cf7aa19c2b6169fbb65597f2e741714ab.zip |
ansify. ok deraadt@ moritz@
Diffstat (limited to 'lib/libc/net/inet_ntoa.c')
-rw-r--r-- | lib/libc/net/inet_ntoa.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/net/inet_ntoa.c b/lib/libc/net/inet_ntoa.c index bd3fd98b095..0e7fe863f63 100644 --- a/lib/libc/net/inet_ntoa.c +++ b/lib/libc/net/inet_ntoa.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: inet_ntoa.c,v 1.4 2003/06/02 20:18:35 millert Exp $"; +static char rcsid[] = "$OpenBSD: inet_ntoa.c,v 1.5 2005/03/25 13:24:12 otto Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -41,11 +41,10 @@ static char rcsid[] = "$OpenBSD: inet_ntoa.c,v 1.4 2003/06/02 20:18:35 millert E #include <stdio.h> char * -inet_ntoa(in) - struct in_addr in; +inet_ntoa(struct in_addr in) { static char b[18]; - register char *p; + char *p; p = (char *)∈ #define UC(b) (((int)b)&0xff) |