aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-01-21 20:07:20 +0000
committerRoland McGrath <roland@gnu.org>2006-01-21 20:07:20 +0000
commitc545373264ab75b5cafa6ca8952d11db2228cd97 (patch)
treefb68a2a509f1f2e8e593978a943a948da011b71a
parent79be21995ef9910dbb32e2c107edab1d047d257e (diff)
downloadglibc-c545373264ab75b5cafa6ca8952d11db2228cd97.zip
glibc-c545373264ab75b5cafa6ca8952d11db2228cd97.tar.gz
glibc-c545373264ab75b5cafa6ca8952d11db2228cd97.tar.bz2
* sysdeps/unix/sysv/linux/faccessat.c: Move RESULT defn inside block.
-rw-r--r--ChangeLog2
-rw-r--r--sysdeps/unix/sysv/linux/faccessat.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f0ea363..606fe35 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2006-01-21 Roland McGrath <roland@redhat.com>
+ * sysdeps/unix/sysv/linux/faccessat.c: Move RESULT defn inside block.
+
* misc/tst-pselect.c: Include <unistd.h>.
* time/time.h [__need_timespec et al]: Include <bits/types.h> here too.
diff --git a/sysdeps/unix/sysv/linux/faccessat.c b/sysdeps/unix/sysv/linux/faccessat.c
index fc8db25..10b903d 100644
--- a/sysdeps/unix/sysv/linux/faccessat.c
+++ b/sysdeps/unix/sysv/linux/faccessat.c
@@ -42,8 +42,6 @@ faccessat (fd, file, mode, flag)
return -1;
}
- int result;
-
#ifdef __NR_faccessat
if ((flag == 0 || ((flag & ~AT_EACCESS) == 0 && ! __libc_enable_secure))
# ifndef __ASSUME_ATFCTS
@@ -51,7 +49,7 @@ faccessat (fd, file, mode, flag)
# endif
)
{
- result = INLINE_SYSCALL (faccessat, 3, fd, file, mode);
+ int result = INLINE_SYSCALL (faccessat, 3, fd, file, mode);
# ifndef __ASSUME_ATFCTS
if (result == -1 && errno == ENOSYS)
__have_atfcts = -1;