diff options
author | Jim Meyering <meyering@redhat.com> | 2009-03-27 17:33:26 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-03-27 17:33:26 +0100 |
commit | 00f84872e4ca703990131207b13af27548c9be57 (patch) | |
tree | a54b9e383f6f330a519b6e25735982cac7901399 /gl/tests | |
parent | a8fde98844d33d2fae0366e4b3fdb086d2d497ce (diff) | |
download | coreutils-00f84872e4ca703990131207b13af27548c9be57.tar.xz |
tests: test-argv-iter.c: avoid declaration-after-stmt
* gl/tests/test-argv-iter.c: Move declaration "up", so as not
to ruffle feathers of crufty compilers. We accommodate such
compilers here solely because this module may migrate to gnulib.
Tiny patch by Matthew Woehlke.
Diffstat (limited to 'gl/tests')
-rw-r--r-- | gl/tests/test-argv-iter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gl/tests/test-argv-iter.c b/gl/tests/test-argv-iter.c index 1daae9a22..c49f1ead9 100644 --- a/gl/tests/test-argv-iter.c +++ b/gl/tests/test-argv-iter.c @@ -72,6 +72,7 @@ main () { FILE *fp; struct argv_iterator *ai; + size_t n_found = 0; if (use_stream) { /* Generate an identical list to be read via FP. */ @@ -85,7 +86,6 @@ main () } ASSERT (ai); - size_t n_found = 0; while (1) { enum argv_iter_err ai_err; |