]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - support/nfs/cacheio.c
nfsd: allow choosing server 41 support at runtime
[nfs-utils.git] / support / nfs / cacheio.c
index 55fa45d7e620c458917d0015c3af19fbf39bc452..9bad8e61f827e814592f539d51fc2784547b939a 100644 (file)
@@ -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));
                        }