svn rev #23044: trunk/src/kadmin/cli/
ghudson@MIT.EDU
ghudson at MIT.EDU
Mon Oct 26 11:10:01 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=23044
Commit By: ghudson
Log Message:
Fix printf argument type mismatches related to pw_max_fail in
kadmin.c.
Changed Files:
U trunk/src/kadmin/cli/kadmin.c
Modified: trunk/src/kadmin/cli/kadmin.c
===================================================================
--- trunk/src/kadmin/cli/kadmin.c 2009-10-26 02:58:06 UTC (rev 23043)
+++ trunk/src/kadmin/cli/kadmin.c 2009-10-26 15:10:00 UTC (rev 23044)
@@ -1640,18 +1640,19 @@
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);
More information about the cvs-krb5
mailing list