From 1ca569633e14c844e32d8e5e3a1c54be01a8b633 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Mon, 19 Jul 2010 12:31:48 -0400 Subject: [PATCH] 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 --- support/nfs/cacheio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.39.2