From 664b2d68eba3e95d9936c8d21ec20681a10fa312 Mon Sep 17 00:00:00 2001 From: Egor Duda Date: Wed, 6 Sep 2000 14:21:53 +0000 Subject: Add 'const' qualifiers where needed to avoid compiler warnings. * libltp/lib/tst_sig.c (tst_sig): Don't attempt to cleanup on fatal errors. * libltp/lib/parse_opts.c (parse_opts): Initialize allocated string to prevent heap corruption. --- winsup/testsuite/libltp/lib/tst_sig.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'winsup/testsuite/libltp/lib/tst_sig.c') diff --git a/winsup/testsuite/libltp/lib/tst_sig.c b/winsup/testsuite/libltp/lib/tst_sig.c index c0d5bbf46..cccc2c7ee 100644 --- a/winsup/testsuite/libltp/lib/tst_sig.c +++ b/winsup/testsuite/libltp/lib/tst_sig.c @@ -150,7 +150,15 @@ tst_sig(int fork_flag, void (*handler)(), void (*cleanup)()) #ifdef SIGPTRESCHED case SIGPTRESCHED: #endif /* SIGPTRESCHED */ - +#ifdef __CYGWIN__ + case SIGSEGV: + case SIGILL: + case SIGTRAP: + case SIGABRT: + case SIGEMT: + case SIGFPE: + case SIGBUS: +#endif break; case SIGCLD: -- cgit v1.2.3