From 45c696249b2f31d090937f07990f10b7903730ff Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Tue, 17 Dec 1996 23:57:45 +0000 Subject: [PATCH] Fix some warnings. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1138 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/keytab.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/krb5/keytab.c b/lib/krb5/keytab.c index 0d1b762b7..e4184bcda 100644 --- a/lib/krb5/keytab.c +++ b/lib/krb5/keytab.c @@ -10,7 +10,7 @@ krb5_kt_resolve(krb5_context context, if (strncmp (name, "FILE:", 5) != 0) return -1; - k = ALLOC(1, krb5_keytab); + k = ALLOC(1, krb5_keytab_data); if (k == NULL) return ENOMEM; k->filename = strdup(name + 5); @@ -106,11 +106,10 @@ krb5_kt_get_entry(krb5_context context, { krb5_error_code r; krb5_kt_cursor cursor; - krb5_keytab_entry entry; r = krb5_kt_start_seq_get (context, id, &cursor); - while (krb5_kt_next_entry(context, id, &entry, &cursor) == 0) { - + while (krb5_kt_next_entry(context, id, entry, &cursor) == 0) { + } return krb5_kt_end_seq_get (context, id, &cursor); }