summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-12-18 23:36:33 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-12-18 23:36:33 +0000
commit047e69aebee5f759c516fc1929accd422364b8d4 (patch)
treeb66a67ea9eaa7c60fbf8d77477db6ccf59e49aca
parent42969a12669ce2a3e13cf89a37e81680da668b99 (diff)
Remove statements that have no effect from X(), Y() and Z() #define's.
Leftovers from the re-engining of systat eight years ago. Makes gcc quieter. ok otto@ deraadt@
-rw-r--r--usr.bin/systat/vmstat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c
index 9410d4a339a..f50aa502103 100644
--- a/usr.bin/systat/vmstat.c
+++ b/usr.bin/systat/vmstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmstat.c,v 1.81 2016/08/24 03:13:45 guenther Exp $ */
+/* $OpenBSD: vmstat.c,v 1.82 2016/12/18 23:36:32 krw Exp $ */
/* $NetBSD: vmstat.c,v 1.5 1996/05/10 23:16:40 thorpej Exp $ */
/*-
@@ -294,9 +294,9 @@ labelkre(void)
}
}
-#define X(fld) {s.fld[i]; s.fld[i]-=s1.fld[i];}
-#define Y(fld) {s.fld; s.fld -= s1.fld;}
-#define Z(fld) {s.nchstats.fld; s.nchstats.fld -= s1.nchstats.fld;}
+#define X(fld) {s.fld[i]-=s1.fld[i];}
+#define Y(fld) {s.fld -= s1.fld;}
+#define Z(fld) {s.nchstats.fld -= s1.nchstats.fld;}
#define PUTRATE(fld, l, c, w) \
do { \
Y(fld); \