summaryrefslogtreecommitdiffstats
path: root/disk-utils/fsck.cramfs.c
diff options
context:
space:
mode:
authormaximilian attems2008-07-30 11:46:32 +0200
committerKarel Zak2008-07-30 13:26:58 +0200
commitd144727bc3e5f77692fc2d6b5c1dbf5d05fc495c (patch)
tree6d0e94d31cc05862eb171216a73e9c917a63cd0b /disk-utils/fsck.cramfs.c
parentmount: retry on ENOMEDIUM (diff)
downloadkernel-qcow2-util-linux-d144727bc3e5f77692fc2d6b5c1dbf5d05fc495c.tar.gz
kernel-qcow2-util-linux-d144727bc3e5f77692fc2d6b5c1dbf5d05fc495c.tar.xz
kernel-qcow2-util-linux-d144727bc3e5f77692fc2d6b5c1dbf5d05fc495c.zip
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 'disk-utils/fsck.cramfs.c')
-rw-r--r--disk-utils/fsck.cramfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/fsck.cramfs.c b/disk-utils/fsck.cramfs.c
index 2d082efbc..aeb766fb3 100644
--- a/disk-utils/fsck.cramfs.c
+++ b/disk-utils/fsck.cramfs.c
@@ -675,7 +675,7 @@ int main(int argc, char **argv)
int start = 0;
size_t length;
- page_size = sysconf(_SC_PAGESIZE);
+ page_size = getpagesize();
if (argc)
progname = argv[0];