Skip to content

Commit

Permalink
Avoid warning in aicache.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Dec 3, 2011
1 parent f101631 commit 9bea347
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2011-12-02 Ulrich Drepper <drepper@gmail.com>

* nscd/aicache.c (addhstaiX): Avoid unused variable warning.

2011-11-29 Joseph Myers <joseph@codesourcery.com>

* sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
Expand Down
7 changes: 5 additions & 2 deletions nscd/aicache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9bea347

Please sign in to comment.