diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-06-18 22:28:58 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-06-18 22:28:58 +0000 |
commit | c00d112835a99268eb4a0362c541a32298b60a55 (patch) | |
tree | a4e7fa0f15d7bb38fc5da9cc110021abc5cb403e | |
parent | d0a1ae946455e137711790c885d6e8a05a37efd0 (diff) | |
download | glibc-c00d112835a99268eb4a0362c541a32298b60a55.zip glibc-c00d112835a99268eb4a0362c541a32298b60a55.tar.gz glibc-c00d112835a99268eb4a0362c541a32298b60a55.tar.bz2 |
* nscd/connections.c (main_loop_poll): Fix test for read error.
(main_loop_epoll): Likewise.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | nscd/connections.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2008-06-18 Ulrich Drepper <drepper@redhat.com> + + * nscd/connections.c (main_loop_poll): Fix test for read error. + (main_loop_epoll): Likewise. + 2008-06-13 Ulrich Drepper <drepper@redhat.com> * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a diff --git a/nscd/connections.c b/nscd/connections.c index bf07f5e..0afc95a 100644 --- a/nscd/connections.c +++ b/nscd/connections.c @@ -1819,7 +1819,7 @@ main_loop_poll (void) while (TEMP_FAILURE_RETRY (read (inotify_fd, &inev, sizeof (inev))) - >= sizeof (struct inotify_event)) + >= (ssize_t) sizeof (struct inotify_event)) { /* Check which of the files changed. */ for (size_t dbcnt = 0; dbcnt < lastdb; ++dbcnt) @@ -1974,7 +1974,7 @@ main_loop_epoll (int efd) while (TEMP_FAILURE_RETRY (read (inotify_fd, &inev, sizeof (inev))) - >= sizeof (struct inotify_event)) + >= (ssize_t) sizeof (struct inotify_event)) { /* Check which of the files changed. */ for (size_t dbcnt = 0; dbcnt < lastdb; ++dbcnt) |