summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-11-27 14:16:40 +0000
committeryar <yar@FreeBSD.org>2006-11-27 14:16:40 +0000
commitb4eda2e286f97498dabe1d00a44a3005c42a50b9 (patch)
treef039e0d57e84c798549b84b4bae8edc74ffcc4de /usr.bin/systat
parentf023e30b9889709fc733f873d83670c4b70b9c07 (diff)
downloadFreeBSD-src-b4eda2e286f97498dabe1d00a44a3005c42a50b9.zip
FreeBSD-src-b4eda2e286f97498dabe1d00a44a3005c42a50b9.tar.gz
C can enumerate things for us.
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/convtbl.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/usr.bin/systat/convtbl.h b/usr.bin/systat/convtbl.h
index ba5b058..4e459c6 100644
--- a/usr.bin/systat/convtbl.h
+++ b/usr.bin/systat/convtbl.h
@@ -39,15 +39,17 @@
#define MEGA (KILO * 1024)
#define GIGA (MEGA * 1024)
-#define SC_BYTE (0)
-#define SC_KILOBYTE (1)
-#define SC_MEGABYTE (2)
-#define SC_GIGABYTE (3)
-#define SC_BIT (4)
-#define SC_KILOBIT (5)
-#define SC_MEGABIT (6)
-#define SC_GIGABIT (7)
-#define SC_AUTO (8)
+enum scale {
+ SC_BYTE,
+ SC_KILOBYTE,
+ SC_MEGABYTE,
+ SC_GIGABYTE,
+ SC_BIT,
+ SC_KILOBIT,
+ SC_MEGABIT,
+ SC_GIGABIT,
+ SC_AUTO
+};
#define BIT (8)
#define BYTE (1)
OpenPOWER on IntegriCloud