Mercurial > gnulib
changeset 29240:c6d69881c6c6
Use plain ANSI C syntax.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 26 Dec 2007 16:28:08 +0100 |
parents | 0cc36cd5f024 |
children | 53d8797106ae |
files | ChangeLog lib/glob.c |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Dec 26 16:26:26 2007 +0100 +++ b/ChangeLog Wed Dec 26 16:28:08 2007 +0100 @@ -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 Wed Dec 26 16:26:26 2007 +0100 +++ b/lib/glob.c Wed Dec 26 16:28:08 2007 +0100 @@ -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;