diff options
author | stefanf <stefanf@FreeBSD.org> | 2004-05-24 16:48:53 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2004-05-24 16:48:53 +0000 |
commit | 5b272dd4eace906cc2f2053b29e3a8c319d4a07d (patch) | |
tree | 0db8a1d5dfb753303225aa9ab1de03cdfbe7731c /lib/libipx | |
parent | 5857c0ba2aca54349d8d4f44c70397b575a20bd9 (diff) | |
download | FreeBSD-src-5b272dd4eace906cc2f2053b29e3a8c319d4a07d.zip FreeBSD-src-5b272dd4eace906cc2f2053b29e3a8c319d4a07d.tar.gz |
Don't declare spectHex() inside a function, use a real prototype.
Approved by: das (mentor)
Diffstat (limited to 'lib/libipx')
-rw-r--r-- | lib/libipx/ipx_ntoa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libipx/ipx_ntoa.c b/lib/libipx/ipx_ntoa.c index d27a121..0864bde 100644 --- a/lib/libipx/ipx_ntoa.c +++ b/lib/libipx/ipx_ntoa.c @@ -43,6 +43,8 @@ static char sccsid[] = "@(#)ipx_ntoa.c"; #include <netipx/ipx.h> #include <stdio.h> +static char *spectHex(char *); + char * ipx_ntoa(addr) struct ipx_addr addr; @@ -54,7 +56,6 @@ ipx_ntoa(addr) char *cp2; u_char *up = addr.x_host.c_host; u_char *uplim = up + 6; - static char *spectHex(); net.net_e = addr.x_net; sprintf(obuf, "%lx", (u_long)ntohl(net.long_e)); |