+Mon Feb 26 14:27:24 2001 Ezra Peisach <epeisach@mit.edu>
+
+ * ktutil.c, ktutil_funcs.c: Do not shadow system "index" and
+ "stime" variables.
+
+ * ktutil.h: Add prototypes for SS callback functions.
+
2000-12-15 Ken Raeburn <raeburn@mit.edu>
* ktutil.c (ktutil_list): Provide a real usage message.
{
krb5_error_code retval;
krb5_kt_list lp;
- struct tm *stime;
+ struct tm *sltime;
int show_time = 0, show_keys = 0, show_enctype = 0;
int i, j;
char *pname;
char fmtbuf[18];
char fill;
- stime = localtime((time_t *)&lp->entry->timestamp);
+ sltime = localtime((time_t *)&lp->entry->timestamp);
fill = ' ';
if (!krb5_timestamp_to_sfstring((krb5_timestamp)lp->entry->
timestamp,
* Delete a numbered entry in a kt_list. Takes a pointer to a kt_list
* in case head gets deleted.
*/
-krb5_error_code ktutil_delete(context, list, index)
+krb5_error_code ktutil_delete(context, list, idx)
krb5_context context;
krb5_kt_list *list;
- int index;
+ int idx;
{
krb5_kt_list lp, prev;
int i;
for (lp = *list, i = 1; lp; prev = lp, lp = lp->next, i++) {
- if (i == index) {
+ if (i == idx) {
if (i == 1)
*list = lp->next;
else
char promptstr[1024];
char *cp;
- int i, tmp, pwsize = BUFSIZ;
+ int i, tmp;
+ unsigned int pwsize = BUFSIZ;
retval = krb5_parse_name(context, princ_str, &princ);
if (retval)
* including the null terminator.
*/
-int getstr(fp, s, n)
+static int getstr(fp, s, n)
FILE *fp;
register char *s;
int n;