From ed61fbcd4c759c0f1b740604288400c6d99271ce Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 29 Jun 2000 01:10:31 +0000 Subject: [PATCH] * iter-test.c (main): Code was using ovsec_kadm_ret_t in place of an int for referencing array. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12462 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/unit-test/ChangeLog | 5 +++++ src/lib/kadm5/unit-test/iter-test.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/lib/kadm5/unit-test/ChangeLog b/src/lib/kadm5/unit-test/ChangeLog index f195831d6..5a952b784 100644 --- a/src/lib/kadm5/unit-test/ChangeLog +++ b/src/lib/kadm5/unit-test/ChangeLog @@ -1,3 +1,8 @@ +2000-06-28 Ezra Peisach + + * iter-test.c (main): Code was using ovsec_kadm_ret_t in place of + an int for referencing array. + 2000-05-09 Ken Raeburn * api.2/chpass-principal-v2.exp (test200): Expect an additional diff --git a/src/lib/kadm5/unit-test/iter-test.c b/src/lib/kadm5/unit-test/iter-test.c index 7ca43d44f..f7740c74f 100644 --- a/src/lib/kadm5/unit-test/iter-test.c +++ b/src/lib/kadm5/unit-test/iter-test.c @@ -6,7 +6,7 @@ main(int argc, char **argv) ovsec_kadm_ret_t ret; void *server_handle; char **names; - int count, princ; + int count, princ, i; if (argc != 3) { fprintf(stderr, "Usage: %s [-princ|-pol] exp\n", argv[0]); @@ -35,8 +35,8 @@ main(int argc, char **argv) exit(1); } - for (ret = 0; ret < count; ret++) - printf("%d: %s\n", ret, names[ret]); + for (i = 0; i < count; i++) + printf("%d: %s\n", i, names[i]); ovsec_kadm_free_name_list(server_handle, names, count); -- 2.26.2