diff options
author | rees <rees@FreeBSD.org> | 2004-03-26 22:44:59 +0000 |
---|---|---|
committer | rees <rees@FreeBSD.org> | 2004-03-26 22:44:59 +0000 |
commit | d5e8f62700d6cc71bdc98dcce5c75443c6b4a22b (patch) | |
tree | 79ec30a39d066c7111d98ec0e181fa30e730ebce /sbin/idmapd | |
parent | b05f0288daadcb0b82d507b42a40665165b146ba (diff) | |
download | FreeBSD-src-d5e8f62700d6cc71bdc98dcce5c75443c6b4a22b.zip FreeBSD-src-d5e8f62700d6cc71bdc98dcce5c75443c6b4a22b.tar.gz |
fix for 64-bit arch:
use %zd to print size_t types and sizeof()
Approved by: alfred
Tested on: sparc64, amd64
Diffstat (limited to 'sbin/idmapd')
-rw-r--r-- | sbin/idmapd/idmapd.c | 5 |
1 files changed, 1 insertions, 4 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}; |