about summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-09-05 18:52:18 +0000
committerRoland McGrath <roland@gnu.org>2002-09-05 18:52:18 +0000
commitbe3c40b627f1f39f9e60240c533cc9535a18f172 (patch)
tree115ec69f81074a3fc4a4fe3ad5942e9c4b5a2472 /nscd
parent43e3d6e3e2a33853b45d0ac770cb91426f944423 (diff)
downloadglibc-be3c40b627f1f39f9e60240c533cc9535a18f172.tar.gz
glibc-be3c40b627f1f39f9e60240c533cc9535a18f172.tar.xz
glibc-be3c40b627f1f39f9e60240c533cc9535a18f172.zip
2002-09-04 Bruno Haible <bruno@clisp.org>
        * elf/readlib.c (process_file): Conditionalize check for QMAGIC.

	* sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
	sigset_get_old_mask): Turn into inline functions.
	* sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
	sigset_get_old_mask): Likewise.
	* sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
	sigset_get_old_mask): Likewise.

	* sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
	default definitions.
	(__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
	_sys_nerr_internal instead of _sys_nerr.

	* nscd/connections.c (handle_request): Declare CALLER inside #if.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/connections.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index 7414ef60a3..58e05018d3 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -391,12 +391,12 @@ cannot handle old request version %d; current version is %d"),
 	}
       else
 	{
-	  struct ucred caller;
-	  socklen_t optlen = sizeof (caller);
-
 	  /* Some systems have no SO_PEERCRED implementation.  They don't
 	     care about security so we don't as well.  */
 #ifdef SO_PEERCRED
+	  struct ucred caller;
+	  socklen_t optlen = sizeof (caller);
+
 	  if (getsockopt (fd, SOL_SOCKET, SO_PEERCRED, &caller, &optlen) < 0)
 	    {
 	      char buf[256];