From d7ed5aaf673f1c7048a9106d48a70f667dc9d1ba Mon Sep 17 00:00:00 2001
From: Eric Blake <ebb9@byu.net>
Date: Mon, 11 Aug 2008 06:33:56 -0600
Subject: [PATCH] test-c-stack: avoid C99-ism

* tests/test-c-stack.c (main): Fix whitespace, move declaration
before statement.
Reported by Alain Guibert.

Signed-off-by: Eric Blake <ebb9@byu.net>
---
 ChangeLog            |  7 +++++++
 tests/test-c-stack.c | 16 ++++++++--------
 2 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 91f110697b..fdb36e2521 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-08-11  Eric Blake  <ebb9@byu.net>
+
+	test-c-stack: avoid C99-ism
+	* tests/test-c-stack.c (main): Fix whitespace, move declaration
+	before statement.
+	Reported by Alain Guibert.
+
 2008-08-10  Jim Meyering  <meyering@redhat.com>
 
 	ensure that return value of uinttostr et al are not ignored
diff --git a/tests/test-c-stack.c b/tests/test-c-stack.c
index bcf72adbde..c1600a589e 100644
--- a/tests/test-c-stack.c
+++ b/tests/test-c-stack.c
@@ -50,17 +50,17 @@ char *program_name;
 int
 main (int argc, char **argv)
 {
-   program_name = argv[0];
 #if HAVE_SETRLIMIT && defined RLIMIT_STACK
-   /* Before starting the endless recursion, try to be friendly to the
-      user's machine.  On some Linux 2.2.x systems, there is no stack
-      limit for user processes at all.  We don't want to kill such
-      systems.  */
-   struct rlimit rl;
-   rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
-   setrlimit (RLIMIT_STACK, &rl);
+  /* Before starting the endless recursion, try to be friendly to the
+     user's machine.  On some Linux 2.2.x systems, there is no stack
+     limit for user processes at all.  We don't want to kill such
+     systems.  */
+  struct rlimit rl;
+  rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
+  setrlimit (RLIMIT_STACK, &rl);
 #endif
 
+  program_name = argv[0];
   if (c_stack_action (0) == 0)
     {
       if (1 < argc)
-- 
2.30.2