From c293bc46ac85a0507c1fc0210529ab16d0c3260b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 26 Dec 2007 16:28:08 +0100 Subject: [PATCH] Use plain ANSI C syntax. --- ChangeLog | 5 +++++ lib/glob.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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; -- 2.11.0