summaryrefslogtreecommitdiffstats
path: root/tests/helpers
diff options
context:
space:
mode:
authorJosiah Worcester2011-06-09 00:52:47 +0200
committerKarel Zak2011-06-14 13:59:07 +0200
commit416723f0899d617325da6f2d9f49a368e227fed4 (patch)
tree8ecc865ec8d65a38480672e2c4524707f71562cf /tests/helpers
parentlib: [tt.c] Fix mbs_width macro for systems without WIDECHAR (diff)
downloadkernel-qcow2-util-linux-416723f0899d617325da6f2d9f49a368e227fed4.tar.gz
kernel-qcow2-util-linux-416723f0899d617325da6f2d9f49a368e227fed4.tar.xz
kernel-qcow2-util-linux-416723f0899d617325da6f2d9f49a368e227fed4.zip
test_sysinfo: Use CHAR_BIT*sizeof(void*) instead of __WORDSIZE.
Signed-off-by: Josiah Worcester <josiahw@gmail.com>
Diffstat (limited to 'tests/helpers')
-rw-r--r--tests/helpers/test_sysinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/helpers/test_sysinfo.c b/tests/helpers/test_sysinfo.c
index cb7b66b1a..a8d80d875 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;
}