From 6b4b650e05b81134ec07ee19df82f22e7c845c12 Mon Sep 17 00:00:00 2001 From: Austin Foxley Date: Sun, 29 Nov 2009 18:23:20 -0800 Subject: test/nptl: don't use c99 features if you don't need to Signed-off-by: Austin Foxley --- test/nptl/tst-cancel22.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/nptl') diff --git a/test/nptl/tst-cancel22.c b/test/nptl/tst-cancel22.c index 33bfc64a3..c47167b90 100644 --- a/test/nptl/tst-cancel22.c +++ b/test/nptl/tst-cancel22.c @@ -29,6 +29,7 @@ int seen; static void * tf (void *arg) { + int i; int old; int r = pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, &old); if (r != 0) @@ -44,7 +45,7 @@ tf (void *arg) exit (1); } - for (int i = 0; i < 10; ++i) + for (i = 0; i < 10; ++i) { struct timespec ts = { .tv_sec = 0, .tv_nsec = 100000000 }; TEMP_FAILURE_RETRY (nanosleep (&ts, &ts)); -- cgit v1.2.3