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:
a86d1a4
)
fix from Paul Brook for ISO C violation in terms of handling of modifying automatic...
author
Mike Frysinger
<vapier@gentoo.org>
Fri, 17 Nov 2006 18:18:46 +0000
(18:18 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Fri, 17 Nov 2006 18:18:46 +0000
(18:18 -0000)
test/setjmp/tst-vfork-longjmp.c
patch
|
blob
|
history
diff --git
a/test/setjmp/tst-vfork-longjmp.c
b/test/setjmp/tst-vfork-longjmp.c
index
d396f62
..
c64e805
100644
(file)
--- a/
test/setjmp/tst-vfork-longjmp.c
+++ b/
test/setjmp/tst-vfork-longjmp.c
@@
-66,7
+66,9
@@
int main(int argc, char *argv[])
const char *prog;
jmp_buf env;
sigjmp_buf sigenv;
- int cnt, max, ret;
+ int max;
+ /* values modified between setjmp/longjmp cannot be local to this func */
+ static int cnt, ret;
memset(&orig_mask, 0x00, sizeof(orig_mask));
ret = sigprocmask(SIG_BLOCK, NULL, &orig_mask);