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 500e13a533a16c642b4c35714017f4a2eac33a7f..78fb2d7dd4094b162b95884b3c31a2770ae15354 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 1d31d77d0ef64618bf56f4993090a5bc659e7c84..bb8417fa2d7adc912fbf94c707ffaef9acc9307f 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;