cvs commit: src/sbin/kldstat kldstat.c
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sun May 30 01:15:53 PDT 2004
On Fri, May 28, 2004 at 02:16:44PM -0700, David Malone wrote:
+> dwmalone 2004/05/28 14:16:44 PDT
+>
+> FreeBSD src repository
+>
+> Modified files:
+> sbin/kldstat kldstat.c
+> Log:
+> Decide how much space we need to print a pointer using
+> sizeof(void *) rather than if __alpha__ is defined.
[...]
+> -#if defined(__alpha__)
+> -#define POINTER_WIDTH 18
+> -#else
+> -#define POINTER_WIDTH 10
+> -#endif
+> +#define POINTER_WIDTH (sizeof(void *) > 4 ? 18 : 10)
Why not just:
#define POINTER_WIDTH (sizeof(void *) * 2 + 2)
?
--
Pawel Jakub Dawidek http://www.FreeBSD.org
pjd at FreeBSD.org http://garage.freebsd.pl
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20040530/9d175ff5/attachment.bin
More information about the cvs-src
mailing list