diff options
author | Greg Banks <gnb@melbourne.sgi.com> | 2006-06-22 18:01:10 +1000 |
---|---|---|
committer | Greg Banks <gnb@melbourne.sgi.com> | 2006-06-22 18:01:10 +1000 |
commit | 93608a52655abf5ac23404c4b5cc05fe575a9c04 (patch) | |
tree | 5d4debc42ac6667427c5f9f8f6e62a5e74906465 /utils/idmapd | |
parent | a07343ee0da4f0974a23b673ae1b0d482c7426a1 (diff) | |
download | nfs-utils-93608a52655abf5ac23404c4b5cc05fe575a9c04.tar.gz nfs-utils-93608a52655abf5ac23404c4b5cc05fe575a9c04.tar.xz nfs-utils-93608a52655abf5ac23404c4b5cc05fe575a9c04.zip |
Fix a number of the easier compile warnings: unused variables,
unused labels, constness, signedness.
Diffstat (limited to 'utils/idmapd')
-rw-r--r-- | utils/idmapd/idmapd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/idmapd/idmapd.c b/utils/idmapd/idmapd.c index c8ce6b2..16b1316 100644 --- a/utils/idmapd/idmapd.c +++ b/utils/idmapd/idmapd.c @@ -541,7 +541,8 @@ nfsdcb(int fd, short which, void *data) struct idmap_client *ic = data; struct idmap_msg im; u_char buf[IDMAP_MAXMSGSZ + 1]; - size_t len, bsiz; + size_t len; + ssize_t bsiz; char *bp, typebuf[IDMAP_MAXMSGSZ], buf1[IDMAP_MAXMSGSZ], authbuf[IDMAP_MAXMSGSZ], *p; unsigned long tmp; @@ -558,7 +559,7 @@ nfsdcb(int fd, short which, void *data) /* Get rid of newline and terminate buffer*/ buf[len - 1] = '\0'; - bp = buf; + bp = (char *)buf; memset(&im, 0, sizeof(im)); @@ -608,7 +609,7 @@ nfsdcb(int fd, short which, void *data) imconv(ic, &im); buf[0] = '\0'; - bp = buf; + bp = (char *)buf; bsiz = sizeof(buf); /* Authentication name */ |