summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorananth@in.ibm.com <ananth@in.ibm.com>2003-12-22 20:54:51 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:10 -0700
commitf4f3939a6cfc4fa1fb6a1621fdfb0ef174f11e41 (patch)
treeb1e42d46d1953cb6b921d870474930bca60b0352
parent01ff79f58925dd26a717ae78f201d739053b5477 (diff)
[PATCH] change pgsize
In udev-009 and previous releases, for klibc compatibility, the pgsize var in sysfs_read_attribute() (file sysfs_dir.c under libsysfs) is handcoded to 0x4000. Should it not be 4096 bytes (0x1000 in hex) instead of 0x4000 (16k bytes)?
-rw-r--r--libsysfs/sysfs_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsysfs/sysfs_dir.c b/libsysfs/sysfs_dir.c
index 7dbee8aba8..c159db7af8 100644
--- a/libsysfs/sysfs_dir.c
+++ b/libsysfs/sysfs_dir.c
@@ -274,7 +274,7 @@ int sysfs_read_attribute(struct sysfs_attribute *sysattr)
return -1;
}
#ifdef __KLIBC__
- pgsize = 0x4000;
+ pgsize = 0x1000;
#else
pgsize = sysconf(_SC_PAGESIZE);
#endif