Use plain ANSI C syntax.
authorBruno Haible <bruno@clisp.org>
Wed, 26 Dec 2007 15:28:08 +0000 (16:28 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 26 Dec 2007 15:28:08 +0000 (16:28 +0100)
ChangeLog
lib/glob.c

index 500e13a..78fb2d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-25  Bruno Haible  <bruno@clisp.org>
+
+       Fixup after 2007-10-16 commit.
+       * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
+
 2007-12-24  Bruno Haible  <bruno@clisp.org>
 
        Make --enable-relocatable work with DESTDIR.
index 1d31d77..bb8417f 100644 (file)
@@ -1443,7 +1443,8 @@ glob_in_dir (const char *pattern, const char *directory, int flags,
          while (1)
            {
              struct globnames *old = names;
-             for (size_t i = 0; i < cur; ++i)
+             size_t i;
+             for (i = 0; i < cur; ++i)
                free (names->name[i]);
              names = names->next;
              /* NB: we will not leak memory here if we exit without
@@ -1468,7 +1469,8 @@ glob_in_dir (const char *pattern, const char *directory, int flags,
          while (1)
            {
              struct globnames *old = names;
-             for (size_t i = 0; i < cur; ++i)
+             size_t i;
+             for (i = 0; i < cur; ++i)
                new_gl_pathv[pglob->gl_offs + pglob->gl_pathc++]
                  = names->name[i];
              names = names->next;