* iter-test.c (main): Code was using ovsec_kadm_ret_t in place of
authorEzra Peisach <epeisach@mit.edu>
Thu, 29 Jun 2000 01:10:31 +0000 (01:10 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 29 Jun 2000 01:10:31 +0000 (01:10 +0000)
        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
src/lib/kadm5/unit-test/iter-test.c

index f195831d6346cea216e412f14cc6bbac7752704b..5a952b784fa1c0139f843713660851cd8d91179d 100644 (file)
@@ -1,3 +1,8 @@
+2000-06-28  Ezra Peisach  <epeisach@mit.edu>
+
+       * iter-test.c (main): Code was using ovsec_kadm_ret_t in place of
+       an int for referencing array.
+
 2000-05-09  Ken Raeburn  <raeburn@mit.edu>
 
        * api.2/chpass-principal-v2.exp (test200): Expect an additional
index 7ca43d44fe0ff4f38a4da1a7f6d9a7c3fc2bfd84..f7740c74f8c6d255f78422afa1a85a18b3d1a51c 100644 (file)
@@ -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);