From: Bruno Haible Date: Wed, 26 Dec 2007 15:28:08 +0000 (+0100) Subject: Use plain ANSI C syntax. X-Git-Tag: v0.1~7904 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=c293bc46ac85a0507c1fc0210529ab16d0c3260b;p=gnulib.git Use plain ANSI C syntax. --- diff --git a/ChangeLog b/ChangeLog index 500e13a53..78fb2d7dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-25 Bruno Haible + + Fixup after 2007-10-16 commit. + * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax. + 2007-12-24 Bruno Haible Make --enable-relocatable work with DESTDIR. diff --git a/lib/glob.c b/lib/glob.c index 1d31d77d0..bb8417fa2 100644 --- a/lib/glob.c +++ b/lib/glob.c @@ -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;