aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/netstat/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/netstat/if.c')
-rw-r--r--usr.bin/netstat/if.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c
index 6ec3387ed856..8e75e41c7c1e 100644
--- a/usr.bin/netstat/if.c
+++ b/usr.bin/netstat/if.c
@@ -32,7 +32,9 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)if.c 5.15 (Berkeley) 3/1/91";
+/* From: static char sccsid[] = "@(#)if.c 5.15 (Berkeley) 3/1/91"; */
+static const char if_c_rcsid[] =
+ "$Id: if.c,v 1.3 1994/02/21 11:35:23 rgrimes Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -123,7 +125,7 @@ intpr(interval, ifnetaddr)
(strcmp(name, interface) != 0 || unit != ifnet.if_unit))
continue;
cp = index(name, '\0');
- *cp++ = ifnet.if_unit + '0';
+ cp += sprintf(cp, "%d", ifnet.if_unit);
if ((ifnet.if_flags&IFF_UP) == 0)
*cp++ = '*';
*cp = '\0';