mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 04:50:07 +00:00
Avoid warning in aicache.c
This commit is contained in:
parent
f101631bfd
commit
9bea34736f
@ -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
|
||||
|
@ -461,8 +461,11 @@ 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
|
||||
written =
|
||||
# endif
|
||||
sendfileall (fd, db->wr_fd, (char *) &dataset->resp
|
||||
- (char *) db->head, dataset->head.recsize);
|
||||
# ifndef __ASSUME_SENDFILE
|
||||
if (written == -1 && errno == ENOSYS)
|
||||
|
Loading…
Reference in New Issue
Block a user