From: Andrew Deason Date: Mon, 19 Oct 2009 01:46:27 +0000 (-0500) Subject: Fix a couple of size_t warnings X-Git-Tag: openafs-devel-1_5_66~46 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9818e3dce9461f08f4aafbfd99be5a48ac098464;p=packages%2Fo%2Fopenafs.git Fix a couple of size_t warnings fsprobe/fsprobe.c and kauth/ka-forwarder.c were trying to print size_t's without using AFS_SIZET_FMT. Fix that. Reviewed-on: http://gerrit.openafs.org/678 Reviewed-by: Simon Wilkinson Tested-by: Derrick Brashear Reviewed-by: Derrick Brashear --- diff --git a/src/fsprobe/fsprobe.c b/src/fsprobe/fsprobe.c index 2272f3830..34ec2c118 100644 --- a/src/fsprobe/fsprobe.c +++ b/src/fsprobe/fsprobe.c @@ -550,7 +550,7 @@ fsprobe_Init(int a_numServers, struct sockaddr_in *a_socketArray, malloc(a_numServers * sizeof(struct fsprobe_ConnectionInfo)); if (fsprobe_ConnInfo == (struct fsprobe_ConnectionInfo *)0) { fprintf(stderr, - "[%s] Can't allocate %d connection info structs (%lu bytes)\n", + "[%s] Can't allocate %d connection info structs (%"AFS_SIZET_FMT" bytes)\n", rn, a_numServers, (a_numServers * sizeof(struct fsprobe_ConnectionInfo))); return (-1); /*No cleanup needs to be done yet */ diff --git a/src/kauth/ka-forwarder.c b/src/kauth/ka-forwarder.c index f894353bc..091e7c6ef 100644 --- a/src/kauth/ka-forwarder.c +++ b/src/kauth/ka-forwarder.c @@ -30,6 +30,11 @@ * running on an MIT kerberos server. */ +#include +#include + +#include + #include #include #include @@ -249,7 +254,7 @@ main(int argc, char **argv) strcpy(a1, inet_ntoa(from.sin_addr)); strcpy(a2, inet_ntoa(to->sin_addr)); - syslog(LOG_INFO, "forwarding %d bytes from %s/%d to %s/%d\n", + syslog(LOG_INFO, "forwarding %"AFS_SIZET_FMT" bytes from %s/%d to %s/%d\n", sendlen, a1, htons(from.sin_port), a2, htons(to->sin_port)); }