aboutsummaryrefslogtreecommitdiff
path: root/sbin/kldstat
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2004-05-28 21:16:44 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2004-05-28 21:16:44 +0000
commit5d9ae0a2125c1d486aa9f51bb206f9bd43a4c00a (patch)
tree1fc04903383b57537483b64fad64038d72848fe9 /sbin/kldstat
parent5141d0dd230333945740aa9e6777cf3afa01641f (diff)
downloadsrc-5d9ae0a2125c1d486aa9f51bb206f9bd43a4c00a.tar.gz
src-5d9ae0a2125c1d486aa9f51bb206f9bd43a4c00a.zip
Decide how much space we need to print a pointer using
sizeof(void *) rather than if __alpha__ is defined.
Notes
Notes: svn path=/head/; revision=129820
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 957a2a2d5d15..2469999f6f8e 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)