From 9818e3dce9461f08f4aafbfd99be5a48ac098464 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Sun, 18 Oct 2009 20:46:27 -0500 Subject: [PATCH] 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 --- src/fsprobe/fsprobe.c | 2 +- src/kauth/ka-forwarder.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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)); } -- 2.39.5