From 49950e70c84665e99fd67d8bf3dbd8893d7d3889 Mon Sep 17 00:00:00 2001 From: dwmalone Date: Fri, 28 May 2004 21:16:44 +0000 Subject: [PATCH] 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 957a2a2d5d15..2469999f6f8e 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)