summaryrefslogtreecommitdiffstats
path: root/utils/idmapd
diff options
context:
space:
mode:
authorGreg Banks <gnb@melbourne.sgi.com>2006-06-22 18:01:10 +1000
committerGreg Banks <gnb@melbourne.sgi.com>2006-06-22 18:01:10 +1000
commit93608a52655abf5ac23404c4b5cc05fe575a9c04 (patch)
tree5d4debc42ac6667427c5f9f8f6e62a5e74906465 /utils/idmapd
parenta07343ee0da4f0974a23b673ae1b0d482c7426a1 (diff)
downloadnfs-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.c7
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 */