diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2004-05-30 10:10:41 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2004-05-30 10:10:41 +0000 |
commit | 6671fde294dc610fc62a914cfd817384f8313e11 (patch) | |
tree | 4661e3bad8fb8db182d7505bdda2f4731f84fcdc /sbin/kldstat/kldstat.c | |
parent | 21f82f995bfaa3cea3aeb4f282a686d71c359e33 (diff) | |
download | FreeBSD-src-6671fde294dc610fc62a914cfd817384f8313e11.zip FreeBSD-src-6671fde294dc610fc62a914cfd817384f8313e11.tar.gz |
Use a better way to calculate POINTER_WIDTH suggested by pjd@.
Diffstat (limited to 'sbin/kldstat/kldstat.c')
-rw-r--r-- | sbin/kldstat/kldstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/kldstat/kldstat.c b/sbin/kldstat/kldstat.c index 2469999..ce5ebf4 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) |