X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=support%2Fnfs%2Fcacheio.c;h=9bad8e61f827e814592f539d51fc2784547b939a;hb=3ef3dc8f1e87ba7a6eaa3c2a6965aff6c80ba414;hp=55fa45d7e620c458917d0015c3af19fbf39bc452;hpb=e8a54a3d5e32c9de009f84d1ef3f26d2dffbf226;p=nfs-utils.git 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)); }