summaryrefslogtreecommitdiff
path: root/gl/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-03-27 17:33:26 +0100
committerJim Meyering <meyering@redhat.com>2009-03-27 17:33:26 +0100
commit00f84872e4ca703990131207b13af27548c9be57 (patch)
treea54b9e383f6f330a519b6e25735982cac7901399 /gl/tests
parenta8fde98844d33d2fae0366e4b3fdb086d2d497ce (diff)
downloadcoreutils-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.c2
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;