diff options
author | Roland McGrath <roland@hack.frob.com> | 2012-10-25 14:49:28 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2012-10-25 14:49:28 -0700 |
commit | 1e9d84cdbc46301a0d9e83f7044393f7d8139382 (patch) | |
tree | 695edfbf5188a69272ff420fb4dd2d858ab8edbb /sysdeps | |
parent | c0a1472e2272045d6520eb92f6a5438e2323b79b (diff) | |
download | glibc-1e9d84cdbc46301a0d9e83f7044393f7d8139382.zip glibc-1e9d84cdbc46301a0d9e83f7044393f7d8139382.tar.gz glibc-1e9d84cdbc46301a0d9e83f7044393f7d8139382.tar.bz2 |
Use __getdents instead of __getdirentries in sparc __get_clockfreq_via_proc_openprom.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c b/sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c index 67ff77f..abd0ebf 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c @@ -91,11 +91,9 @@ __get_clockfreq_via_proc_openprom (void) { unsigned long int buf[4096 / sizeof (unsigned long int)]; struct dirent *dirp = (struct dirent *) buf; - off_t dbase = (off_t) 0; ssize_t len; - while ((len = __getdirentries (obp_fd, (char *) dirp, - sizeof (buf), &dbase)) > 0) + while ((len = __getdents (obp_fd, (char *) dirp, sizeof (buf))) > 0) { struct dirent *this_dirp = dirp; |