about summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-09-09 20:23:35 +1000
committerAllan McRae <allan@archlinux.org>2013-09-09 20:25:01 +1000
commit83e43bf0b756065dc640680d90fa6f0b39425182 (patch)
tree670383f9ea3199990352522f30144ed9da82cb9d /nscd
parent0c66b8e985649f89a84b26ba02740b23e1f4e091 (diff)
downloadglibc-83e43bf0b756065dc640680d90fa6f0b39425182.tar.gz
glibc-83e43bf0b756065dc640680d90fa6f0b39425182.tar.xz
glibc-83e43bf0b756065dc640680d90fa6f0b39425182.zip
Fix nesting of ifdefs in netgroupcache.c
Fixes unclosed '{' if HAVE_SENDFILE is defined (BZ #15895).
Diffstat (limited to 'nscd')
-rw-r--r--nscd/netgroupcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
index dd06ce4fae..a607dda0a5 100644
--- a/nscd/netgroupcache.c
+++ b/nscd/netgroupcache.c
@@ -591,10 +591,10 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req,
 # endif
 	}
       else
+#endif
 	{
-# ifndef __ASSUME_SENDFILE
+#if defined HAVE_SENDFILE && !defined __ASSUME_SENDFILE
 	use_write:
-# endif
 #endif
 	  writeall (fd, &dataset->resp, sizeof (innetgroup_response_header));
 	}