diff options
author | Greg Hudson <ghudson@mit.edu> | 2009-10-26 15:10:00 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2009-10-26 15:10:00 +0000 |
commit | 3f4aa3e91b2b1660170f419a8baf62495788cb27 (patch) | |
tree | f0d3e1eb8e2e87463f4f323575df13c28791a2c8 /src/kadmin | |
parent | 37a78faef46d959856af377d6da182ce0376ce67 (diff) | |
download | krb5-3f4aa3e91b2b1660170f419a8baf62495788cb27.tar.gz krb5-3f4aa3e91b2b1660170f419a8baf62495788cb27.tar.xz krb5-3f4aa3e91b2b1660170f419a8baf62495788cb27.zip |
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
Diffstat (limited to 'src/kadmin')
-rw-r--r-- | src/kadmin/cli/kadmin.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/kadmin/cli/kadmin.c b/src/kadmin/cli/kadmin.c index 51746def44..22a67ab156 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); |