]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use __getdents instead of __getdirentries in sparc __get_clockfreq_via_proc_openprom.
authorRoland McGrath <roland@hack.frob.com>
Thu, 25 Oct 2012 21:49:28 +0000 (14:49 -0700)
committerRoland McGrath <roland@hack.frob.com>
Thu, 25 Oct 2012 21:49:28 +0000 (14:49 -0700)
ChangeLog
sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c

index 2ce7d91c7864a80dbe000588ef70d974a2d6675f..6656fa1146565551649f80586207cb5509cf13fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-10-25  Roland McGrath  <roland@hack.frob.com>
+
+       * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
+       (__get_clockfreq_via_proc_openprom): Use __getdents instead of
+       __getdirentries.
+
 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
            Jim Blandy  <jimb@codesourcery.com>
 
        (__SWBLK_T_TYPE): Likewise.
 
 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
-            Honza Horak <hhorak@redhat.com>
+           Honza Horak <hhorak@redhat.com>
 
        * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
        (xdr_mapname): Use YPMAXMAP as maxsize.
 
 2012-12-09  Allan McRae  <allan@archlinux.org>
 
-        * sysdeps/i386/fpu/libm-test-ulps: Update
+       * sysdeps/i386/fpu/libm-test-ulps: Update
 
 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
 
index 67ff77fa8cb2b21a42ee87e58b4d400c33456992..abd0ebfb9f7b795432e32b195fdb8af5ccb8dbd2 100644 (file)
@@ -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;