diff options
Diffstat (limited to 'src/lib/libc/net/ipx_addr.c')
-rw-r--r-- | src/lib/libc/net/ipx_addr.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/lib/libc/net/ipx_addr.c b/src/lib/libc/net/ipx_addr.c index 371ac7c917..c7f8306128 100644 --- a/src/lib/libc/net/ipx_addr.c +++ b/src/lib/libc/net/ipx_addr.c | |||
@@ -33,7 +33,7 @@ | |||
33 | */ | 33 | */ |
34 | 34 | ||
35 | #if defined(LIBC_SCCS) && !defined(lint) | 35 | #if defined(LIBC_SCCS) && !defined(lint) |
36 | static char rcsid[] = "$OpenBSD: ipx_addr.c,v 1.6 2003/06/02 20:18:35 millert Exp $"; | 36 | static char rcsid[] = "$OpenBSD: ipx_addr.c,v 1.7 2005/03/25 13:24:12 otto Exp $"; |
37 | #endif /* LIBC_SCCS and not lint */ | 37 | #endif /* LIBC_SCCS and not lint */ |
38 | 38 | ||
39 | #include <sys/param.h> | 39 | #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 | |||
43 | 43 | ||
44 | static struct ipx_addr addr, zero_addr; | 44 | static struct ipx_addr addr, zero_addr; |
45 | 45 | ||
46 | static void Field(), cvtbase(); | 46 | static void Field(char *, u_char *, int); |
47 | static void cvtbase(long, int, int *, int, unsigned char *, int); | ||
47 | 48 | ||
48 | struct ipx_addr | 49 | struct ipx_addr |
49 | ipx_addr(name) | 50 | ipx_addr(const char *name) |
50 | const char *name; | ||
51 | { | 51 | { |
52 | char separator; | 52 | char separator; |
53 | char *hostname, *socketname, *cp; | 53 | char *hostname, *socketname, *cp; |
@@ -92,12 +92,9 @@ ipx_addr(name) | |||
92 | } | 92 | } |
93 | 93 | ||
94 | static void | 94 | static void |
95 | Field(buf, out, len) | 95 | Field(char *buf, u_char *out, int len) |
96 | char *buf; | ||
97 | u_char *out; | ||
98 | int len; | ||
99 | { | 96 | { |
100 | register char *bp = buf; | 97 | char *bp = buf; |
101 | int i, ibase, base16 = 0, base10 = 0, clen = 0; | 98 | int i, ibase, base16 = 0, base10 = 0, clen = 0; |
102 | int hb[6], *hp; | 99 | int hb[6], *hp; |
103 | char *fmt; | 100 | char *fmt; |
@@ -196,13 +193,8 @@ Field(buf, out, len) | |||
196 | } | 193 | } |
197 | 194 | ||
198 | static void | 195 | static void |
199 | cvtbase(oldbase,newbase,input,inlen,result,reslen) | 196 | cvtbase(long oldbase, int newbase, int *input, int inlen, |
200 | long oldbase; | 197 | unsigned char *result, int reslen) |
201 | int newbase; | ||
202 | int input[]; | ||
203 | int inlen; | ||
204 | unsigned char result[]; | ||
205 | int reslen; | ||
206 | { | 198 | { |
207 | int d, e; | 199 | int d, e; |
208 | long sum; | 200 | long sum; |