From 5bc4b4956509256e8cf13bd04e4615ee2cb31c65 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Mon, 6 Sep 2010 09:38:47 +0100 Subject: [PATCH] aklog: Fix some format warnings Fix some format warnings (size_t vs int) which only appear when we're building with Heimdal. Change-Id: I7313ea1a7e01532b11fc6039a8a56e0fd874c347 Reviewed-on: http://gerrit.openafs.org/2740 Reviewed-by: Andrew Deason Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/aklog/aklog.c | 4 ++-- src/aklog/asetkey.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/aklog/aklog.c b/src/aklog/aklog.c index 2f8253cec..a4d56a377 100644 --- a/src/aklog/aklog.c +++ b/src/aklog/aklog.c @@ -1963,8 +1963,8 @@ get_credv5_akimpersonate(krb5_context context, if(buf_len != buf_size) { afs_com_err(progname, code, - "%d != %d while encoding ticket (internal ASN.1 encoder error", - buf_len, buf_size); + "%u != %u while encoding ticket (internal ASN.1 encoder error", + (unsigned int)buf_len, (unsigned int)buf_size); goto cleanup; } what = "krb5_crypto_init"; diff --git a/src/aklog/asetkey.c b/src/aklog/asetkey.c index a0e0dd57c..416d1d6bb 100644 --- a/src/aklog/asetkey.c +++ b/src/aklog/asetkey.c @@ -140,8 +140,8 @@ main(int argc, char *argv[]) key->contents #endif if (deref_key_length(key) != 8) { - fprintf(stderr, "Key length should be 8, but is really %d!\n", - deref_key_length(key)); + fprintf(stderr, "Key length should be 8, but is really %u!\n", + (unsigned int)deref_key_length(key)); exit(1); } code = afsconf_AddKey(tdir, kvno, (char *) deref_key_contents(key), 1); -- 2.39.5