From 5f3d29562d53b5e144787fbf1abe598c6822b20d Mon Sep 17 00:00:00 2001 From: David Mosberger-Tang Date: Wed, 16 May 2007 13:19:46 -0600 Subject: [PATCH] * tests/test-async-sig.c: Move "const" definition to separate area to keep things a bit neater looking. * tests/test-ptrace.c: Likewise. Signed-off-by: David Mosberger-Tang --- tests/test-async-sig.c | 3 ++- tests/test-ptrace.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test-async-sig.c b/tests/test-async-sig.c index 0aea21ca..9309076c 100644 --- a/tests/test-async-sig.c +++ b/tests/test-async-sig.c @@ -33,6 +33,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #define UNW_LOCAL_ONLY #include +static const int nerrors_max = 100; + struct itimerval interval = { .it_interval = { .tv_sec = 0, .tv_usec = 0 }, @@ -41,7 +43,6 @@ struct itimerval interval = int verbose; int nerrors; -static const int nerrors_max = 100; int sigcount; #define panic(args...) \ diff --git a/tests/test-ptrace.c b/tests/test-ptrace.c index 11fffee4..1f46f7d8 100644 --- a/tests/test-ptrace.c +++ b/tests/test-ptrace.c @@ -47,8 +47,9 @@ main (int argc, char **argv) #include #include -int nerrors; static const int nerrors_max = 100; + +int nerrors; int verbose; int print_names = 1;