* nscd/connections.c (main_loop_poll): Fix test for read error.
authorUlrich Drepper <drepper@redhat.com>
Wed, 18 Jun 2008 22:28:58 +0000 (22:28 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 18 Jun 2008 22:28:58 +0000 (22:28 +0000)
(main_loop_epoll): Likewise.

ChangeLog
nscd/connections.c

index 70017e5e762c741d7f9a574299c525f5a9067988..c0dcf2de385661cd8da18bbb9a6e9312591467cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index bf07f5e791989acd8b0f7b4d541a71681b2b7834..0afc95a22763e38dbb4fc25a18726f2314d6e908 100644 (file)
@@ -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)