diff options
author | greg@kroah.com <greg@kroah.com> | 2004-01-28 18:53:12 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:20 -0700 |
commit | bc59f0167a03be2d2e4cf8a680dda8444243c64f (patch) | |
tree | c4df76eaa1459d7346431aa817c8341125390a47 /libsysfs | |
parent | 0115874355e618a4b7684be814610d3612283c6a (diff) |
[PATCH] remove a __KLIBC__ tests in libsysfs, as klibc now supports getpagesize()
Diffstat (limited to 'libsysfs')
-rw-r--r-- | libsysfs/sysfs_dir.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libsysfs/sysfs_dir.c b/libsysfs/sysfs_dir.c index a60410ed28..ce01669754 100644 --- a/libsysfs/sysfs_dir.c +++ b/libsysfs/sysfs_dir.c @@ -273,11 +273,8 @@ int sysfs_read_attribute(struct sysfs_attribute *sysattr) sysattr->path); return -1; } -#ifdef __KLIBC__ - pgsize = 0x1000; -#else - pgsize = sysconf(_SC_PAGESIZE); -#endif + + pgsize = getpagesize(); fbuf = (unsigned char *)calloc(1, pgsize+1); if (fbuf == NULL) { dprintf("calloc failed\n"); |