summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2012-11-17 16:47:05 +0000
committered <ed@FreeBSD.org>2012-11-17 16:47:05 +0000
commit56ac8995968ed0f7fe36265dcc55e8a1d53b76bb (patch)
tree385e5abec268b743a3e1de38417619e98565f3d5 /usr.bin
parentfdd9f9add0cc17d57a953c760f6f8621d1335257 (diff)
downloadFreeBSD-src-56ac8995968ed0f7fe36265dcc55e8a1d53b76bb.zip
FreeBSD-src-56ac8995968ed0f7fe36265dcc55e8a1d53b76bb.tar.gz
Fix whitespace.
MFC after: 1 week
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/w/extern.h1
-rw-r--r--usr.bin/w/proc_compare.c12
2 files changed, 6 insertions, 7 deletions
diff --git a/usr.bin/w/extern.h b/usr.bin/w/extern.h
index 0e886d0..facc3e8 100644
--- a/usr.bin/w/extern.h
+++ b/usr.bin/w/extern.h
@@ -30,7 +30,6 @@
* $FreeBSD$
*/
-
extern int use_ampm;
struct kinfo_proc;
diff --git a/usr.bin/w/proc_compare.c b/usr.bin/w/proc_compare.c
index 4888386..0e73ba4 100644
--- a/usr.bin/w/proc_compare.c
+++ b/usr.bin/w/proc_compare.c
@@ -62,11 +62,11 @@ __FBSDID("$FreeBSD$");
* TODO - consider whether pctcpu should be used.
*/
-#define ISRUN(p) (((p)->ki_stat == SRUN) || ((p)->ki_stat == SIDL))
-#define TESTAB(a, b) ((a)<<1 | (b))
-#define ONLYA 2
-#define ONLYB 1
-#define BOTH 3
+#define ISRUN(p) (((p)->ki_stat == SRUN) || ((p)->ki_stat == SIDL))
+#define TESTAB(a, b) ((a)<<1 | (b))
+#define ONLYA 2
+#define ONLYB 1
+#define BOTH 3
int
proc_compare(struct kinfo_proc *p1, struct kinfo_proc *p2)
@@ -93,7 +93,7 @@ proc_compare(struct kinfo_proc *p1, struct kinfo_proc *p2)
return (p2->ki_pid > p1->ki_pid); /* tie - return highest pid */
}
/*
- * weed out zombies
+ * weed out zombies
*/
switch (TESTAB(p1->ki_stat == SZOMB, p2->ki_stat == SZOMB)) {
case ONLYA:
OpenPOWER on IntegriCloud