aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2004-05-30 10:10:41 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2004-05-30 10:10:41 +0000
commit2c8aff0a0480f991dc88ef1eecf3390a365d546d (patch)
tree4661e3bad8fb8db182d7505bdda2f4731f84fcdc /sbin
parent0f2ffc4e3173c23a26f1186682ed469d474084d2 (diff)
downloadsrc-2c8aff0a0480f991dc88ef1eecf3390a365d546d.tar.gz
src-2c8aff0a0480f991dc88ef1eecf3390a365d546d.zip
Use a better way to calculate POINTER_WIDTH suggested by pjd@.
Notes
Notes: svn path=/head/; revision=129866
Diffstat (limited to 'sbin')
-rw-r--r--sbin/kldstat/kldstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/kldstat/kldstat.c b/sbin/kldstat/kldstat.c
index 2469999f6f8e..ce5ebf489ba0 100644
--- a/sbin/kldstat/kldstat.c
+++ b/sbin/kldstat/kldstat.c
@@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$");
#include <sys/module.h>
#include <sys/linker.h>
-#define POINTER_WIDTH (sizeof(void *) > 4 ? 18 : 10)
+#define POINTER_WIDTH ((int)(sizeof(void *) * 2 + 2))
static void
printmod(int modid)