From: Josiah Worcester Date: Wed, 8 Jun 2011 22:52:47 +0000 (-0600) Subject: test_sysinfo: Use CHAR_BIT*sizeof(void*) instead of __WORDSIZE. X-Git-Tag: v2.20-rc1~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=416723f0899d617325da6f2d9f49a368e227fed4;p=thirdparty%2Futil-linux.git test_sysinfo: Use CHAR_BIT*sizeof(void*) instead of __WORDSIZE. Signed-off-by: Josiah Worcester --- diff --git a/tests/helpers/test_sysinfo.c b/tests/helpers/test_sysinfo.c index cb7b66b1a0..a8d80d8759 100644 --- a/tests/helpers/test_sysinfo.c +++ b/tests/helpers/test_sysinfo.c @@ -28,7 +28,7 @@ typedef struct { int hlp_wordsize(void) { - printf("%d\n", __WORDSIZE); + printf("%d\n", CHAR_BIT*sizeof(void*)); return 0; }