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/ipx_addr.c | |
parent | whitespace (diff) | |
download | wireguard-openbsd-db5b349cf7aa19c2b6169fbb65597f2e741714ab.tar.xz wireguard-openbsd-db5b349cf7aa19c2b6169fbb65597f2e741714ab.zip |
ansify. ok deraadt@ moritz@
Diffstat (limited to 'lib/libc/net/ipx_addr.c')
-rw-r--r-- | lib/libc/net/ipx_addr.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/lib/libc/net/ipx_addr.c b/lib/libc/net/ipx_addr.c index 371ac7c917f..c7f83061285 100644 --- a/lib/libc/net/ipx_addr.c +++ b/lib/libc/net/ipx_addr.c @@ -33,7 +33,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: ipx_addr.c,v 1.6 2003/06/02 20:18:35 millert Exp $"; +static char rcsid[] = "$OpenBSD: ipx_addr.c,v 1.7 2005/03/25 13:24:12 otto Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -43,11 +43,11 @@ static char rcsid[] = "$OpenBSD: ipx_addr.c,v 1.6 2003/06/02 20:18:35 millert Ex static struct ipx_addr addr, zero_addr; -static void Field(), cvtbase(); +static void Field(char *, u_char *, int); +static void cvtbase(long, int, int *, int, unsigned char *, int); struct ipx_addr -ipx_addr(name) - const char *name; +ipx_addr(const char *name) { char separator; char *hostname, *socketname, *cp; @@ -92,12 +92,9 @@ ipx_addr(name) } static void -Field(buf, out, len) - char *buf; - u_char *out; - int len; +Field(char *buf, u_char *out, int len) { - register char *bp = buf; + char *bp = buf; int i, ibase, base16 = 0, base10 = 0, clen = 0; int hb[6], *hp; char *fmt; @@ -196,13 +193,8 @@ Field(buf, out, len) } static void -cvtbase(oldbase,newbase,input,inlen,result,reslen) - long oldbase; - int newbase; - int input[]; - int inlen; - unsigned char result[]; - int reslen; +cvtbase(long oldbase, int newbase, int *input, int inlen, + unsigned char *result, int reslen) { int d, e; long sum; |