diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2004-05-28 21:16:44 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2004-05-28 21:16:44 +0000 |
commit | 49950e70c84665e99fd67d8bf3dbd8893d7d3889 (patch) | |
tree | 1fc04903383b57537483b64fad64038d72848fe9 /sbin | |
parent | 32fb9597f44c3f54e8a2e435ae6f440bf5ac33d7 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sbin/kldstat/kldstat.c | 6 |
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) |