From: Steve Dickson Date: Mon, 19 Jul 2010 16:31:48 +0000 (-0400) Subject: emove warnings from cacheio.c X-Git-Tag: nfs-utils-1-2-3-rc5~20 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=1ca569633e14c844e32d8e5e3a1c54be01a8b633 emove warnings from cacheio.c cacheio.c: In function 'cache_flush': cacheio.c:352: warning: comparison between signed and unsigned integer expressions Signed-off-by: Steve Dickson --- diff --git a/support/nfs/cacheio.c b/support/nfs/cacheio.c index 55fa45d..9bad8e6 100644 --- a/support/nfs/cacheio.c +++ b/support/nfs/cacheio.c @@ -349,7 +349,7 @@ cache_flush(int force) sprintf(path, "/proc/net/rpc/%s/flush", cachelist[c]); fd = open(path, O_RDWR); if (fd >= 0) { - if (write(fd, stime, strlen(stime)) != strlen(stime)) { + if (write(fd, stime, strlen(stime)) != (ssize_t)strlen(stime)) { xlog_warn("Writing to '%s' failed: errno %d (%s)", path, errno, strerror(errno)); }