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/libltp/include
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/libltp/include')
-rw-r--r--winsup/testsuite/libltp/include/test.h12
-rw-r--r--winsup/testsuite/libltp/include/usctest.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/winsup/testsuite/libltp/include/test.h b/winsup/testsuite/libltp/include/test.h
index 6f955172e..acfdfdf1b 100644
--- a/winsup/testsuite/libltp/include/test.h
+++ b/winsup/testsuite/libltp/include/test.h
@@ -190,14 +190,14 @@ extern void tst_clear_error();
* The following prototypes are needed to remove compile errors
* on IRIX systems when compiled with -n32 and -64.
*/
-extern void tst_res(int ttype, char *fname, char *arg_fmt, ...);
-extern void tst_resm(int ttype, char *arg_fmt, ...);
+extern void tst_res(int ttype, char *fname, const char *arg_fmt, ...);
+extern void tst_resm(int ttype, const char *arg_fmt, ...);
extern void tst_brk(int ttype, char *fname, void (*func)(),
- char *arg_fmt, ...);
+ const char *arg_fmt, ...);
extern void tst_brkloop(int ttype, char *fname, void (*func)(),
- char *arg_fmt, ...);
-extern void tst_brkm(int ttype, void (*func)(), char *arg_fmt, ...);
-extern void tst_brkloopm(int ttype, void (*func)(), char *arg_fmt, ...);
+ const char *arg_fmt, ...);
+extern void tst_brkm(int ttype, void (*func)(), const char *arg_fmt, ...);
+extern void tst_brkloopm(int ttype, void (*func)(), const char *arg_fmt, ...);
extern int tst_environ();
extern void tst_exit();
diff --git a/winsup/testsuite/libltp/include/usctest.h b/winsup/testsuite/libltp/include/usctest.h
index afdd45f6b..232e67a98 100644
--- a/winsup/testsuite/libltp/include/usctest.h
+++ b/winsup/testsuite/libltp/include/usctest.h
@@ -142,7 +142,7 @@ extern float STD_LOOP_DURATION, /* wall clock time to iterate */
/**********************************************************************
* Prototype for parse_opts routine
**********************************************************************/
-extern char *parse_opts(int ac, char **av, option_t *user_optarr, void (*uhf)());
+extern const char *parse_opts(int ac, char **av, option_t *user_optarr, void (*uhf)());
/*