diff options
Diffstat (limited to 'nscd')
-rw-r--r-- | nscd/hstcache.c | 6 | ||||
-rw-r--r-- | nscd/initgrcache.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/nscd/hstcache.c b/nscd/hstcache.c index 10d13b85c2..94a2f6e9af 100644 --- a/nscd/hstcache.c +++ b/nscd/hstcache.c @@ -134,9 +134,9 @@ cache_addhst (struct database_dyn *db, int fd, request_header *req, const hst_response_header *resp = (errval == EAGAIN ? &tryagain : ¬found); - if (fd != -1 && - TEMP_FAILURE_RETRY (send (fd, resp, total, - MSG_NOSIGNAL)) != total) + if (fd != -1 + && TEMP_FAILURE_RETRY (send (fd, resp, total, + MSG_NOSIGNAL)) != total) all_written = false; /* If we have a transient error or cannot permanently store diff --git a/nscd/initgrcache.c b/nscd/initgrcache.c index 02823baac6..186a8b58b5 100644 --- a/nscd/initgrcache.c +++ b/nscd/initgrcache.c @@ -366,8 +366,8 @@ addinitgroupsX (struct database_dyn *db, int fd, request_header *req, // XXX async OK? uintptr_t pval = (uintptr_t) dataset & ~pagesize_m1; msync ((void *) pval, - ((uintptr_t) dataset & pagesize_m1) + total + - req->key_len, MS_ASYNC); + ((uintptr_t) dataset & pagesize_m1) + total + + req->key_len, MS_ASYNC); } (void) cache_add (INITGROUPS, cp, req->key_len, &dataset->head, true, |