Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.bin/netstat Pull up revision 1.45 (requested by he):
details: https://anonhg.NetBSD.org/src/rev/359253f9d726
branches: netbsd-1-4
changeset: 471079:359253f9d726
user: he <he%NetBSD.org@localhost>
date: Thu Oct 19 16:32:04 2000 +0000
description:
Pull up revision 1.45 (requested by he):
Format string cleanup.
diffstat:
usr.bin/netstat/if.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 2483a25c56aa -r 359253f9d726 usr.bin/netstat/if.c
--- a/usr.bin/netstat/if.c Thu Oct 19 16:32:02 2000 +0000
+++ b/usr.bin/netstat/if.c Thu Oct 19 16:32:04 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if.c,v 1.31 1999/03/14 22:28:05 mycroft Exp $ */
+/* $NetBSD: if.c,v 1.31.2.1 2000/10/19 16:32:04 he Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94";
#else
-__RCSID("$NetBSD: if.c,v 1.31 1999/03/14 22:28:05 mycroft Exp $");
+__RCSID("$NetBSD: if.c,v 1.31.2.1 2000/10/19 16:32:04 he Exp $");
#endif
#endif /* not lint */
@@ -152,7 +152,7 @@
printf("%-17.17s ", "none");
} else {
char hexsep = '.'; /* for hexprint */
- const char *hexfmt = "%x%c"; /* for hexprint */
+ const char hexfmt[] = "%02x%c"; /* for hexprint */
if (kread(ifaddraddr, (char *)&ifaddr, sizeof ifaddr)) {
ifaddraddr = 0;
continue;
@@ -231,7 +231,7 @@
cp = (char *)LLADDR(sdl);
if (sdl->sdl_type == IFT_FDDI
|| sdl->sdl_type == IFT_ETHER)
- hexsep = ':', hexfmt = "%02x%c";
+ hexsep = ':';
n = sdl->sdl_alen;
}
m = printf("%-13.13s ", "<Link>");
Home |
Main Index |
Thread Index |
Old Index