[PATCH] Fix nesting of ifdefs in netgroupcache.c

Allan McRae allan@archlinux.org
Sun Sep 8 12:39:00 GMT 2013


Fixes unclosed '{' if HAVE_SENDFILE is defined (BZ #15895).
---

A similar fix was made in 97c066e6

2013-09-08  Allan McRae  <allan@archlinux.org>

	[BZ #15895]
	* nscd/netgroupcache.c: Fix nesting of ifdefs.


 nscd/netgroupcache.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
index dd06ce4..a607dda 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));
 	}
-- 
1.8.4



More information about the Libc-alpha mailing list