From 5d9ae0a2125c1d486aa9f51bb206f9bd43a4c00a Mon Sep 17 00:00:00 2001 From: David Malone Date: Fri, 28 May 2004 21:16:44 +0000 Subject: Decide how much space we need to print a pointer using sizeof(void *) rather than if __alpha__ is defined. --- sbin/kldstat/kldstat.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sbin/kldstat/kldstat.c b/sbin/kldstat/kldstat.c index 957a2a2d5d156..2469999f6f8eb 100644 --- a/sbin/kldstat/kldstat.c +++ b/sbin/kldstat/kldstat.c @@ -37,11 +37,7 @@ __FBSDID("$FreeBSD$"); #include #include -#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) -- cgit v1.3