summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/idmapd/idmapd.c5
-rw-r--r--sys/nfs4client/nfs4_dev.h2
2 files changed, 2 insertions, 5 deletions
diff --git a/sbin/idmapd/idmapd.c b/sbin/idmapd/idmapd.c
index 809f7b4..e32c383 100644
--- a/sbin/idmapd/idmapd.c
+++ b/sbin/idmapd/idmapd.c
@@ -215,7 +215,7 @@ idmap_service(struct idmap_e * e)
}
if (e->msg.msg_len != sizeof(struct idmap_msg)) {
- fprintf(stderr, "bad message length: %d/%d\n", e->msg.msg_len,
+ fprintf(stderr, "bad message length: %zd/%zd\n", e->msg.msg_len,
sizeof(struct idmap_msg));
return -1;
}
@@ -355,9 +355,6 @@ main(int argc, char ** argv)
if (!verbose)
daemon(0,0);
- if (verbose)
- printf("sizeof nfs4dev_msg: %d\n", sizeof(struct nfs4dev_msg));
-
maxfd = fd;
for (;;) {
struct timeval timo = {1, 0};
diff --git a/sys/nfs4client/nfs4_dev.h b/sys/nfs4client/nfs4_dev.h
index 218f1de..4d4817c 100644
--- a/sys/nfs4client/nfs4_dev.h
+++ b/sys/nfs4client/nfs4_dev.h
@@ -47,7 +47,7 @@ struct nfs4dev_msg {
uint8_t msg_data[NFS4DEV_MSG_MAX_DATALEN];
};
-#define NFS4DEV_VERSION (0x3 << 16 | sizeof(struct nfs4dev_msg))
+#define NFS4DEV_VERSION (0x3 << 16 | (int) sizeof(struct nfs4dev_msg))
/* ioctl commands */
#define NFS4DEVIOCGET _IOR('A', 0x200, struct nfs4dev_msg)
OpenPOWER on IntegriCloud