summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/netstat/unix.c')
-rw-r--r--usr.bin/netstat/unix.c11
1 files changed, 6 insertions, 5 deletions
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 <sys/cdefs.h>
+__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) {
OpenPOWER on IntegriCloud