Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Duda <deo@logos-m.ru>2000-09-06 18:21:53 +0400
committerEgor Duda <deo@logos-m.ru>2000-09-06 18:21:53 +0400
commit664b2d68eba3e95d9936c8d21ec20681a10fa312 (patch)
treee6271d97288d679418f83a7ad9861de54f0a4dcf /winsup/testsuite/winsup.api/ltp/fork04.c
parent94cb46cdf0ab32ab3ef40266b4e92c72e7c0f7b3 (diff)
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.
Diffstat (limited to 'winsup/testsuite/winsup.api/ltp/fork04.c')
-rw-r--r--winsup/testsuite/winsup.api/ltp/fork04.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/testsuite/winsup.api/ltp/fork04.c b/winsup/testsuite/winsup.api/ltp/fork04.c
index 9fb7a8c9f..3725d9f0f 100644
--- a/winsup/testsuite/winsup.api/ltp/fork04.c
+++ b/winsup/testsuite/winsup.api/ltp/fork04.c
@@ -320,7 +320,7 @@ int
main(int ac, char **av)
{
int lc; /* loop counter */
- char *msg; /* message returned from parse_opts */
+ const char *msg; /* message returned from parse_opts */
int kid_status; /* status returned from child */
int wait_status; /* status of wait system call in parent */
int fails; /* indicates whether to continue with tests */