summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/unix.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2008-01-02 23:26:11 +0000
committerobrien <obrien@FreeBSD.org>2008-01-02 23:26:11 +0000
commit74070565806ee33326b76dcdd5e1e0a86cd4e6ed (patch)
treec9e471757da087ea1d56d2bb2d36eec3defb7135 /usr.bin/netstat/unix.c
parent34e034ebc6ca1e6cb030e381b5f003c30215034e (diff)
downloadFreeBSD-src-74070565806ee33326b76dcdd5e1e0a86cd4e6ed.zip
FreeBSD-src-74070565806ee33326b76dcdd5e1e0a86cd4e6ed.tar.gz
style(9)
+ kread is not a boolean, so check it as such + fix $FreeBSD$ Ids + denote copyrights with /*- + misc whitespace changes.
Diffstat (limited to 'usr.bin/netstat/unix.c')
-rw-r--r--usr.bin/netstat/unix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/netstat/unix.c b/usr.bin/netstat/unix.c
index 03bef85..0778bac 100644
--- a/usr.bin/netstat/unix.c
+++ b/usr.bin/netstat/unix.c
@@ -65,7 +65,7 @@ __FBSDID("$FreeBSD$");
#include <kvm.h>
#include "netstat.h"
-static void unixdomainpr (struct xunpcb *, struct xsocket *);
+static void unixdomainpr(struct xunpcb *, struct xsocket *);
static const char *const socktype[] =
{ "#0", "stream", "dgram", "raw", "rdm", "seqpacket" };
@@ -124,7 +124,7 @@ pcblist_kvm(u_long count_off, u_long gencnt_off, u_long head_off, char **bufp)
}
p = buf;
-#define COPYOUT(obj, size) do { \
+#define COPYOUT(obj, size) do { \
if (len < (size)) { \
warnx("buffer size exceeded"); \
goto fail; \
@@ -134,7 +134,7 @@ pcblist_kvm(u_long count_off, u_long gencnt_off, u_long head_off, char **bufp)
p += (size); \
} while (0)
-#define KREAD(off, buf, len) do { \
+#define KREAD(off, buf, len) do { \
if (kread((uintptr_t)(off), (buf), (len)) != 0) \
goto fail; \
} while (0)
OpenPOWER on IntegriCloud