summaryrefslogtreecommitdiffstats
path: root/sbin/kldstat
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2004-05-28 21:16:44 +0000
committerdwmalone <dwmalone@FreeBSD.org>2004-05-28 21:16:44 +0000
commit49950e70c84665e99fd67d8bf3dbd8893d7d3889 (patch)
tree1fc04903383b57537483b64fad64038d72848fe9 /sbin/kldstat
parent32fb9597f44c3f54e8a2e435ae6f440bf5ac33d7 (diff)
downloadFreeBSD-src-49950e70c84665e99fd67d8bf3dbd8893d7d3889.zip
FreeBSD-src-49950e70c84665e99fd67d8bf3dbd8893d7d3889.tar.gz
Decide how much space we need to print a pointer using
sizeof(void *) rather than if __alpha__ is defined.
Diffstat (limited to 'sbin/kldstat')
-rw-r--r--sbin/kldstat/kldstat.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sbin/kldstat/kldstat.c b/sbin/kldstat/kldstat.c
index 957a2a2..2469999 100644
--- a/sbin/kldstat/kldstat.c
+++ b/sbin/kldstat/kldstat.c
@@ -37,11 +37,7 @@ __FBSDID("$FreeBSD$");
#include <sys/module.h>
#include <sys/linker.h>
-#if defined(__alpha__)
-#define POINTER_WIDTH 18
-#else
-#define POINTER_WIDTH 10
-#endif
+#define POINTER_WIDTH (sizeof(void *) > 4 ? 18 : 10)
static void
printmod(int modid)
OpenPOWER on IntegriCloud