diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Tue Nov 22 00:25:17 2011 Tanaka Akira <akr@fsij.org> + + * io.c (linux_get_maxfd): get rid of a warning. + Mon Nov 21 23:39:14 2011 Tanaka Akira <akr@fsij.org> * io.c (linux_get_maxfd): new function to find maximum fd on Linux. @@ -5153,7 +5153,7 @@ linux_get_maxfd(void) if (ss == -1) goto err; p = buf; e = buf + ss; - while (sizeof("FDSize:\t0\n")-1 <= e-p && + while ((int)sizeof("FDSize:\t0\n")-1 <= e-p && (n = memchr(p, '\n', e-p)) != NULL) { if (memcmp(p, "FDSize:", sizeof("FDSize:")-1) == 0) { int fdsize; |