X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=support%2Fnfs%2Fcacheio.c;h=9bad8e61f827e814592f539d51fc2784547b939a;hb=29b8a7700129d9768e3e2d94c81eec9f84ba8691;hp=0587ecbecefff75636e81637a56e45046adb5af6;hpb=6ca440c2661dccb05ae74ffb65817e9c30f05c8a;p=nfs-utils.git diff --git a/support/nfs/cacheio.c b/support/nfs/cacheio.c index 0587ecb..9bad8e6 100644 --- a/support/nfs/cacheio.c +++ b/support/nfs/cacheio.c @@ -241,7 +241,7 @@ int qword_get_int(char **bpp, int *anint) return 0; } -int qword_get_uint(char *bpp, unsigned int *anint) +int qword_get_uint(char **bpp, unsigned int *anint) { char buf[50]; char *ep; @@ -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)); }