]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
test_sysinfo: Use CHAR_BIT*sizeof(void*) instead of __WORDSIZE.
authorJosiah Worcester <josiahw@gmail.com>
Wed, 8 Jun 2011 22:52:47 +0000 (16:52 -0600)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Jun 2011 11:59:07 +0000 (13:59 +0200)
Signed-off-by: Josiah Worcester <josiahw@gmail.com>
tests/helpers/test_sysinfo.c

index cb7b66b1a0a09b6f0cc9786c0c76bee4bc0b4956..a8d80d8759edd8003601b0073e646849ef329fe2 100644 (file)
@@ -28,7 +28,7 @@ typedef struct {
 int
 hlp_wordsize(void)
 {
-       printf("%d\n", __WORDSIZE);
+       printf("%d\n", CHAR_BIT*sizeof(void*));
        return 0;
 }