summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/ipx_addr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/ipx_addr.c')
-rw-r--r--src/lib/libc/net/ipx_addr.c24
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)
36static char rcsid[] = "$OpenBSD: ipx_addr.c,v 1.6 2003/06/02 20:18:35 millert Exp $"; 36static 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
44static struct ipx_addr addr, zero_addr; 44static struct ipx_addr addr, zero_addr;
45 45
46static void Field(), cvtbase(); 46static void Field(char *, u_char *, int);
47static void cvtbase(long, int, int *, int, unsigned char *, int);
47 48
48struct ipx_addr 49struct ipx_addr
49ipx_addr(name) 50ipx_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
94static void 94static void
95Field(buf, out, len) 95Field(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
198static void 195static void
199cvtbase(oldbase,newbase,input,inlen,result,reslen) 196cvtbase(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;