=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/if.c,v retrieving revision 1.47 retrieving revision 1.48 diff -c -r1.47 -r1.48 *** src/usr.bin/netstat/if.c 2006/05/27 19:16:37 1.47 --- src/usr.bin/netstat/if.c 2006/05/27 19:24:01 1.48 *************** *** 1,4 **** ! /* $OpenBSD: if.c,v 1.47 2006/05/27 19:16:37 claudio Exp $ */ /* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: if.c,v 1.48 2006/05/27 19:24:01 claudio Exp $ */ /* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */ /* *************** *** 34,40 **** #if 0 static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94"; #else ! static char *rcsid = "$OpenBSD: if.c,v 1.47 2006/05/27 19:16:37 claudio Exp $"; #endif #endif /* not lint */ --- 34,40 ---- #if 0 static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94"; #else ! static char *rcsid = "$OpenBSD: if.c,v 1.48 2006/05/27 19:24:01 claudio Exp $"; #endif #endif /* not lint */ *************** *** 280,288 **** char netnum[8]; *(union ipx_net *)&net = sipx->sipx_addr.ipx_net; ! snprintf(netnum, sizeof netnum, "%xH", ntohl(net)); - upHex(netnum); printf("ipx:%-8s", netnum); printf("%-17s ", ipx_phost((struct sockaddr *)sipx)); --- 280,287 ---- char netnum[8]; *(union ipx_net *)&net = sipx->sipx_addr.ipx_net; ! snprintf(netnum, sizeof netnum, "%XH", ntohl(net)); printf("ipx:%-8s", netnum); printf("%-17s ", ipx_phost((struct sockaddr *)sipx)); *************** *** 550,573 **** catchalarm(int signo) { signalled = YES; - } - - void - upHex(char *p0) - { - char *p = p0; - - for (; *p; p++) - switch (*p) { - case 'a': - case 'b': - case 'c': - case 'd': - case 'e': - case 'f': - *p += ('A' - 'a'); - break; - } } char * --- 549,554 ----