+1999-10-12 Ken Raeburn <raeburn@mit.edu>
+
+ * conv_princ.c (sconv_list): Don't do conversion for "zephyr"
+ principal. (Noticed by Derrick Brashear.) Delete about a dozen
+ duplicate entries.
+
+ * str_conv.c (dt_output_donly, dt_output_dhms, dt_output_hms,
+ sftime_default_fmt): Replace char arrays with macros, so gcc can
+ do better format-string checking.
+
1999-09-01 Ken Raeburn <raeburn@mit.edu>
* init_ctx.c (get_profile_etype_list): Update name of the des3
{"abs", "abs", DO_REALM_CONVERSION},
{"nfs", "nfs", DO_REALM_CONVERSION},
{"tftp", "tftp", DO_REALM_CONVERSION},
- {"zephyr", "zephyr", DO_REALM_CONVERSION},
+ {"zephyr", "zephyr", 0},
{"http", "http", DO_REALM_CONVERSION},
{"khttp", "khttp", DO_REALM_CONVERSION},
{"pgpsigner", "pgpsigner", DO_REALM_CONVERSION},
{"mandarin-agent", "mandarin-agent", DO_REALM_CONVERSION},
{"write", "write", DO_REALM_CONVERSION},
{"palladium", "palladium", DO_REALM_CONVERSION},
- {"news", "news", DO_REALM_CONVERSION},
- {"abs", "abs", DO_REALM_CONVERSION},
- {"nfs", "nfs", DO_REALM_CONVERSION},
- {"tftp", "tftp", DO_REALM_CONVERSION},
- {"zephyr", "zephyr", DO_REALM_CONVERSION},
- {"http", "http", DO_REALM_CONVERSION},
- {"khttp", "khttp", DO_REALM_CONVERSION},
- {"pgpsigner", "pgpsigner", DO_REALM_CONVERSION},
- {"irc", "irc", DO_REALM_CONVERSION},
- {"mandarin-agent", "mandarin-agent", DO_REALM_CONVERSION},
- {"write", "write", DO_REALM_CONVERSION},
- {"palladium", "palladium", DO_REALM_CONVERSION},
{0, 0, 0},
};
static const char sftime_short_fmt[] = "%x %X";
static const char sftime_last_fmt[] = "%d/%m/%Y %R";
#endif /* HAVE_STRFTIME */
-static const char sftime_default_fmt[] = "%02d/%02d/%4d %02d:%02d";
+#define sftime_default_fmt "%02d/%02d/%4d %02d:%02d"
static const size_t sftime_default_len = 2+1+2+1+4+1+2+1+2+1;
/* Delta time strings */
static const char dtscan_seconds[] = "%d%[s]";
static const char dt_day_singular[] = "day";
static const char dt_day_plural[] = "days";
-static const char dt_output_donly[] = "%d %s";
-static const char dt_output_dhms[] = "%d %s %02d:%02d:%02d";
-static const char dt_output_hms[] = "%d:%02d:%02d";
+#define dt_output_donly "%d %s"
+#define dt_output_dhms "%d %s %02d:%02d:%02d"
+#define dt_output_hms "%d:%02d:%02d"
/*
* Lookup tables.