summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-12-02 21:05:19 -0500
committerUlrich Drepper <drepper@gmail.com>2011-12-02 21:05:19 -0500
commit9bea34736f85cba4452c6ee1138152c6df752094 (patch)
tree07113859ea7b2fd158da70121e0369ee0c775e04 /nscd
parentf101631bfddb6db77ca6b8ed3c2eb72b49d92f9f (diff)
downloadglibc-9bea34736f85cba4452c6ee1138152c6df752094.tar.gz
glibc-9bea34736f85cba4452c6ee1138152c6df752094.tar.xz
glibc-9bea34736f85cba4452c6ee1138152c6df752094.zip
Avoid warning in aicache.c
Diffstat (limited to 'nscd')
-rw-r--r--nscd/aicache.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nscd/aicache.c b/nscd/aicache.c
index 8d100f8d31..aaaf80df9d 100644
--- a/nscd/aicache.c
+++ b/nscd/aicache.c
@@ -461,9 +461,12 @@ addhstaiX (struct database_dyn *db, int fd, request_header *req,
 		      <= (sizeof (struct database_pers_head)
 			  + db->head->module * sizeof (ref_t)
 			  + db->head->data_size));
+# ifndef __ASSUME_SENDFILE
 	      ssize_t written;
-	      written = sendfileall (fd, db->wr_fd, (char *) &dataset->resp
-				     - (char *) db->head, dataset->head.recsize);
+	      written =
+# endif
+		sendfileall (fd, db->wr_fd, (char *) &dataset->resp
+			     - (char *) db->head, dataset->head.recsize);
 # ifndef __ASSUME_SENDFILE
 	      if (written == -1 && errno == ENOSYS)
 		goto use_write;