diff options
author | Karel Zak | 2007-02-06 11:35:15 +0100 |
---|---|---|
committer | Karel Zak | 2007-02-06 11:35:15 +0100 |
commit | 7ac3b5b8e3ec944e7cd3bcc6d992882c4d443414 (patch) | |
tree | 8670a08ffd55e656893f300ee0a8d75819ff5958 /tests/helpers | |
parent | tests: fix argv[] usage in mnt_test_sysinfo.c (diff) | |
download | kernel-qcow2-util-linux-7ac3b5b8e3ec944e7cd3bcc6d992882c4d443414.tar.gz kernel-qcow2-util-linux-7ac3b5b8e3ec944e7cd3bcc6d992882c4d443414.tar.xz kernel-qcow2-util-linux-7ac3b5b8e3ec944e7cd3bcc6d992882c4d443414.zip |
Clean up pagesize/PAGE_SIZE usage.
Now all code in util-linux uses sysconf(_SC_PAGESIZE) that is standardized and
preferred way of querying page size. The asm/page.h file is not included to the
code anymore. (This patch doesn't change mount's FS detection code which will
be removed later).
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/helpers')
-rw-r--r-- | tests/helpers/mnt_test_sysinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/helpers/mnt_test_sysinfo.c b/tests/helpers/mnt_test_sysinfo.c index 90cf02337..9bbcefa38 100644 --- a/tests/helpers/mnt_test_sysinfo.c +++ b/tests/helpers/mnt_test_sysinfo.c @@ -20,7 +20,7 @@ hlp_wordsize(void) int hlp_pagesize(void) { - printf("%d\n", getpagesize()); + printf("%d\n", (int) sysconf(_SC_PAGESIZE)); return 0; } |