changeset 9549:de8a758aeb9a

Use plain ANSI C syntax.
author Bruno Haible <bruno@clisp.org>
date Wed, 26 Dec 2007 16:28:08 +0100
parents 827a525c7057
children 6bc27027a2d6
files ChangeLog lib/glob.c
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/lib/glob.c
+++ b/lib/glob.c
@@ -1443,7 +1443,8 @@
 	  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 @@
 	  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;