From cd48a1d32b7e37d716e9ca0da9ba773994c976b3 Mon Sep 17 00:00:00 2001 From: charnier Date: Mon, 26 Jul 2004 20:18:11 +0000 Subject: Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). Use warnx() instead of warn() when error message is not of any interest. Add prototypes. --- usr.bin/netstat/unix.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'usr.bin/netstat/unix.c') diff --git a/usr.bin/netstat/unix.c b/usr.bin/netstat/unix.c index 5698ede..d925611 100644 --- a/usr.bin/netstat/unix.c +++ b/usr.bin/netstat/unix.c @@ -31,13 +31,14 @@ * SUCH DAMAGE. */ -#ifndef lint #if 0 +#ifndef lint static char sccsid[] = "@(#)unix.c 8.1 (Berkeley) 6/6/93"; -#endif -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#endif + +#include +__FBSDID("$FreeBSD$"); /* * Display protocol blocks in the unix domain. @@ -88,7 +89,7 @@ unixpr(void) continue; } if ((buf = malloc(len)) == 0) { - warn("malloc %lu bytes", (u_long)len); + warnx("malloc %lu bytes", (u_long)len); return; } if (sysctlbyname(mibvar, buf, &len, 0, 0) < 0) { -- cgit v1.1