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.
This commit is contained in:
@ -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)());
|
||||
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user