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 <sxw@inf.ed.ac.uk>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
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 */
* running on an MIT kerberos server.
*/
+#include <afsconfig.h>
+#include <afs/param.h>
+
+#include <afs/stds.h>
+
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
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));
}