From 3f4aa3e91b2b1660170f419a8baf62495788cb27 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 26 Oct 2009 15:10:00 +0000 Subject: [PATCH] Fix printf argument type mismatches related to pw_max_fail in kadmin.c. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23044 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/cli/kadmin.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/kadmin/cli/kadmin.c b/src/kadmin/cli/kadmin.c index 51746def4..22a67ab15 100644 --- a/src/kadmin/cli/kadmin.c +++ b/src/kadmin/cli/kadmin.c @@ -1640,18 +1640,19 @@ kadmin_getpol(int argc, char *argv[]) policy.pw_min_classes); printf("Number of old keys kept: %ld\n", policy.pw_history_num); printf("Reference count: %ld\n", policy.policy_refcnt); - printf("Maximum password failures before lockout: %ld\n", - policy.pw_max_fail); + printf("Maximum password failures before lockout: %lu\n", + (unsigned long)policy.pw_max_fail); printf("Password failure count reset interval: %ld\n", (long)policy.pw_failcnt_interval); printf("Password lockout duration: %ld\n", (long)policy.pw_lockout_duration); } else { - printf("\"%s\"\t%ld\t%ld\t%ld\t%ld\t%ld\t%ld\t%ld\t%ld\t%ld\n", + printf("\"%s\"\t%ld\t%ld\t%ld\t%ld\t%ld\t%ld\t%lu\t%ld\t%ld\n", policy.policy, policy.pw_max_life, policy.pw_min_life, policy.pw_min_length, policy.pw_min_classes, policy.pw_history_num, policy.policy_refcnt, - policy.pw_max_fail, (long)policy.pw_failcnt_interval, + (unsigned long)policy.pw_max_fail, + (long)policy.pw_failcnt_interval, (long)policy.pw_lockout_duration); } kadm5_free_policy_ent(handle, &policy); -- 2.26.2