This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix nesting of ifdefs in netgroupcache.c
- From: Allan McRae <allan at archlinux dot org>
- To: libc-alpha at sourceware dot org
- Date: Sun, 8 Sep 2013 22:39:37 +1000
- Subject: [PATCH] Fix nesting of ifdefs in netgroupcache.c
- Authentication-results: sourceware.org; auth=none
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