diff options
author | charnier <charnier@FreeBSD.org> | 2004-07-26 20:18:11 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2004-07-26 20:18:11 +0000 |
commit | cd48a1d32b7e37d716e9ca0da9ba773994c976b3 (patch) | |
tree | 4c45a009fc2c7e4c27551e4a0c106d7a27aef7f7 /usr.bin/netstat/inet.c | |
parent | 0a8bce8ca9483bbe6dfb9ac58016a4397d080ee3 (diff) | |
download | FreeBSD-src-cd48a1d32b7e37d716e9ca0da9ba773994c976b3.zip FreeBSD-src-cd48a1d32b7e37d716e9ca0da9ba773994c976b3.tar.gz |
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.
Diffstat (limited to 'usr.bin/netstat/inet.c')
-rw-r--r-- | usr.bin/netstat/inet.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c index f75963f..ea679f8 100644 --- a/usr.bin/netstat/inet.c +++ b/usr.bin/netstat/inet.c @@ -31,13 +31,14 @@ * SUCH DAMAGE. */ +#if 0 #ifndef lint -/* static char sccsid[] = "@(#)inet.c 8.5 (Berkeley) 5/24/95"; -*/ -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#endif + +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/queue.h> @@ -142,7 +143,7 @@ protopr(u_long proto, /* for sysctl version we pass proto # */ return; } 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) { |