OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9c7e6a
)
test/nptl: don't use c99 features if you don't need to
author
Austin Foxley
<austinf@cetoncorp.com>
Mon, 30 Nov 2009 02:23:20 +0000
(18:23 -0800)
committer
Austin Foxley
<austinf@cetoncorp.com>
Mon, 30 Nov 2009 02:23:20 +0000
(18:23 -0800)
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
test/nptl/tst-cancel22.c
patch
|
blob
|
history
diff --git
a/test/nptl/tst-cancel22.c
b/test/nptl/tst-cancel22.c
index
33bfc64
..
c47167b
100644
(file)
--- 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 (i
nt 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));