diff options
author | Austin Foxley <austinf@cetoncorp.com> | 2009-11-29 18:23:20 -0800 |
---|---|---|
committer | Austin Foxley <austinf@cetoncorp.com> | 2009-11-29 18:23:20 -0800 |
commit | 6b4b650e05b81134ec07ee19df82f22e7c845c12 (patch) | |
tree | 0666dd505086fdb52ac4a64c1f2409e95e36090a /test | |
parent | d9c7e6a19ea2c96080f3bf7de069acf87c9a8a5d (diff) |
test/nptl: don't use c99 features if you don't need to
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/nptl/tst-cancel22.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)); |