From: Ulrich Drepper Date: Wed, 18 Jun 2008 22:28:58 +0000 (+0000) Subject: * nscd/connections.c (main_loop_poll): Fix test for read error. X-Git-Tag: cvs/fedora-glibc-20080703T1203~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c00d112835a99268eb4a0362c541a32298b60a55;p=thirdparty%2Fglibc.git * nscd/connections.c (main_loop_poll): Fix test for read error. (main_loop_epoll): Likewise. --- diff --git a/ChangeLog b/ChangeLog index 70017e5e762..c0dcf2de385 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-06-18 Ulrich Drepper + + * nscd/connections.c (main_loop_poll): Fix test for read error. + (main_loop_epoll): Likewise. + 2008-06-13 Ulrich Drepper * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a diff --git a/nscd/connections.c b/nscd/connections.c index bf07f5e7919..0afc95a2276 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)