summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2008-07-30 11:46:32 +0200
committerKarel Zak <kzak@redhat.com>2008-07-30 13:26:58 +0200
commitd144727bc3e5f77692fc2d6b5c1dbf5d05fc495c (patch)
tree6d0e94d31cc05862eb171216a73e9c917a63cd0b /tests
parentd50c5917f07a0674e4e48a19d6902d17fb43e5bc (diff)
downloadutil-linux-old-d144727bc3e5f77692fc2d6b5c1dbf5d05fc495c.tar.gz
use getpagesize()
getpagesize() is said to be more portable than sysconf(_SC_PAGESIZE) to anything Linux. this patch helps klibc porting effort as the sysconf multiplex API is not supported there. also remove comment of the switch to sysconf in mkswap.c. Signed-off-by: maximilian attems <max@stro.at>
Diffstat (limited to 'tests')
-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 00ee2523..4b71955c 100644
--- a/tests/helpers/test_sysinfo.c
+++ b/tests/helpers/test_sysinfo.c
@@ -36,7 +36,7 @@ hlp_wordsize(void)
int
hlp_pagesize(void)
{
- printf("%d\n", (int) sysconf(_SC_PAGESIZE));
+ printf("%d\n", getpagesize());
return 0;
}