+2000-10-03 Ezra Peisach <epeisach@mit.edu>
+
+ * kadmin.c (kadmin_getpol): Change format strings from %d to %ld
+ to match the policy types which are longs.
+
+ * getdate.y: Include stdlib.h if present on system.
+
2000-07-03 Ezra Peisach <epeisach@mit.edu>
* ss_wrapper.c (main): ss_listen() takes only one argument
#include <stdio.h>
#include <ctype.h>
+#if defined(HAVE_STDLIB_H)
+#include <stdlib.h>
+#endif
+
/* The code at the top of get_date which figures out the offset of the
current time zone checks various CPP symbols to see if special
tricks are need, but defaults to using the gettimeofday system call.
static int yylex ();
static int yyerror ();
-#if !defined(lint) && !defined(SABER)
+#if !defined(lint) && !defined(SABER) && !defined(_LINT)
static char RCS[] =
"$Header$";
#endif /* !defined(lint) && !defined(SABER) */
int quit()
{
- krb5_ccache cc;
- int retval;
-
kadm5_destroy(handle);
if (ccache_name != NULL) {
fprintf(stderr,
int i;
time_t now;
time_t date;
- krb5_error_code retval;
time(&now);
*mask = 0;
}
if (argc == 2) {
printf("Policy: %s\n", policy.policy);
- printf("Maximum password life: %d\n", policy.pw_max_life);
- printf("Minimum password life: %d\n", policy.pw_min_life);
- printf("Minimum password length: %d\n", policy.pw_min_length);
- printf("Minimum number of password character classes: %d\n",
+ printf("Maximum password life: %ld\n", policy.pw_max_life);
+ printf("Minimum password life: %ld\n", policy.pw_min_life);
+ printf("Minimum password length: %ld\n", policy.pw_min_length);
+ printf("Minimum number of password character classes: %ld\n",
policy.pw_min_classes);
- printf("Number of old keys kept: %d\n", policy.pw_history_num);
- printf("Reference count: %d\n", policy.policy_refcnt);
+ printf("Number of old keys kept: %ld\n", policy.pw_history_num);
+ printf("Reference count: %ld\n", policy.policy_refcnt);
} else {
- printf("\"%s\"\t%d\t%d\t%d\t%d\t%d\t%d\n",
+ printf("\"%s\"\t%ld\t%ld\t%ld\t%ld\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);