]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Don't call fstat, use STAT macro.
authorUlrich Drepper <drepper@redhat.com>
Tue, 18 Jan 2000 10:26:16 +0000 (10:26 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 18 Jan 2000 10:26:16 +0000 (10:26 +0000)
sysdeps/unix/sysv/linux/internal_statvfs.c

index 24765dcf5ee73bf3a21bce9f172328333577bbf4..2ea380d5cdbfbe40a2aef2c6a1f2696a286c3464 100644 (file)
@@ -40,7 +40,7 @@
      file.  The way we can test for matching filesystem is using the
      device number.  */
   buf->f_flag = 0;
-  if (fstat (fd, &st) >= 0)
+  if (STAT (&st) >= 0)
     {
       int save_errno = errno;
       struct mntent mntbuf;