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:
Egor Duda 2000-09-06 14:21:53 +00:00
parent 94cb46cdf0
commit 664b2d68eb
98 changed files with 131 additions and 113 deletions

View File

@ -1,3 +1,11 @@
2000-09-06 Egor Duda <deo@logos-m.ru>
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.
2000-09-04 Egor Duda <deo@logos-m.ru>
* Makefile.in: Always add libltp headers directory to headers

View File

@ -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();

View File

@ -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)());
/*

View File

@ -54,7 +54,7 @@ int offset;
int ind; /* index into CHARS array */
char *chr;
int chars_size;
char *charlist;
const char *charlist;
chr=buffer;
total=offset+bsize;
@ -90,7 +90,7 @@ char **errmsg;
int ind; /* index into CHARS array */
char *chr;
int chars_size;
char *charlist;
const char *charlist;
chr=buffer;
total=offset+bsize;

View File

@ -109,7 +109,7 @@
static char Open_symbols[512]; /* space for openflags2symbols return value */
struct open_flag_t {
char *symbol;
const char *symbol;
int flag;
};

View File

@ -144,8 +144,8 @@ static char *STD_start_break=0; /* original sbrk size */
static int Debug=0;
struct std_option_t {
char *optstr;
char *help;
const char *optstr;
const char *help;
char *flag;
char **arg;
} std_options[] = {
@ -197,7 +197,7 @@ static void usc_recressive_func();
/**********************************************************************
* parse_opts:
**********************************************************************/
char *
const char *
parse_opts(int ac, char **av, option_t *user_optarr, void (*uhf)())
{
int found; /* flag to indicate that an option specified was */
@ -236,6 +236,8 @@ parse_opts(int ac, char **av, option_t *user_optarr, void (*uhf)())
if (!optionstr)
return "parse_opts: ERROR - Could not allocate memory for optionstr";
optionstr[0] = '\0';
for (i = 0; std_options[i].optstr; ++i)
strcat(optionstr, std_options[i].optstr);
if (user_optarr)

View File

@ -153,7 +153,7 @@
*/
static void check_env();
static void tst_condense(int tnum, int ttype, char *tmesg);
static void tst_print(char *tcid, int tnum, int trange, int ttype, char *tmesg);
static void tst_print(char *tcid, int tnum, int trange, int ttype, const char *tmesg);
static void cat_file(char *filename);
@ -216,7 +216,7 @@ char *TESTDIR = NULL;
* eventually get here to print the results.
*/
void
tst_res(int ttype, char *fname, char *arg_fmt, ...)
tst_res(int ttype, char *fname, const char *arg_fmt, ...)
{
int i;
char tmesg[USERMESG]; /* expanded message */
@ -407,7 +407,7 @@ tst_flush()
* stream.
*/
static void
tst_print(char *tcid, int tnum, int trange, int ttype, char *tmesg)
tst_print(char *tcid, int tnum, int trange, int ttype, const char *tmesg)
{
char type[5];
@ -581,7 +581,7 @@ tst_environ()
* tests cases.
*/
void
tst_brk(int ttype, char *fname, void (*func)(), char *arg_fmt, ...)
tst_brk(int ttype, char *fname, void (*func)(), const char *arg_fmt, ...)
{
char tmesg[USERMESG]; /* expanded message */
@ -652,7 +652,7 @@ tst_brk(int ttype, char *fname, void (*func)(), char *arg_fmt, ...)
* remaining test cases within test case loop.
*/
void
tst_brkloop(int ttype, char *fname, void (*func)(), char *arg_fmt, ...)
tst_brkloop(int ttype, char *fname, void (*func)(), const char *arg_fmt, ...)
{
char tmesg[USERMESG]; /* expanded message */
@ -727,7 +727,7 @@ tst_brkloop(int ttype, char *fname, void (*func)(), char *arg_fmt, ...)
* tst_resm() - Interface to tst_res(), with no filename.
*/
void
tst_resm(int ttype, char *arg_fmt, ...)
tst_resm(int ttype, const char *arg_fmt, ...)
{
char tmesg[USERMESG]; /* expanded message */
@ -752,7 +752,7 @@ tst_resm(int ttype, char *arg_fmt, ...)
* tst_brkm() - Interface to tst_brk(), with no filename.
*/
void
tst_brkm(int ttype, void (*func)(), char *arg_fmt, ...)
tst_brkm(int ttype, void (*func)(), const char *arg_fmt, ...)
{
char tmesg[USERMESG]; /* expanded message */
@ -777,7 +777,7 @@ tst_brkm(int ttype, void (*func)(), char *arg_fmt, ...)
* tst_brkloopm() - Interface to tst_brkloop(), with no filename.
*/
void
tst_brkloopm(int ttype, void (*func)(), char *arg_fmt, ...)
tst_brkloopm(int ttype, void (*func)(), const char *arg_fmt, ...)
{
char tmesg[USERMESG]; /* expanded message */

View File

@ -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:

View File

@ -157,7 +157,7 @@ int Ntc = sizeof(Test_cases) / sizeof(struct test_case_t);
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 tc;
TST_TOTAL=Ntc;

View File

@ -122,7 +122,7 @@ int exp_enos[]={EFAULT, 0}; /* List must end with 0 */
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 */

View File

@ -129,7 +129,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 */
/***************************************************************
* parse standard options

View File

@ -119,7 +119,7 @@ main(int ac, char **av)
/* Parameters for usc code */
int lc; /* loop counter */
char *msg; /* message returned from parse_opts */
const char *msg; /* message returned from parse_opts */
/* Parameters for alarm test */
char *buf[] = { "-1", "ULONG_MAX", "ULONG_MAX+1"};

View File

@ -110,7 +110,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 */
/***************************************************************
* parse standard options

View File

@ -151,7 +151,7 @@ main(int ac, char **av)
int ret_val; /* return value from testrun call */
int eok; /* everything is ok flag */
int lc; /* loop counter */
char *msg; /* message returned from parse_opts */
const char *msg; /* message returned from parse_opts */
int flag_cnt;
Tst_nobuf=1;

View File

@ -132,7 +132,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 */
/***************************************************************
* parse standard options

View File

@ -140,7 +140,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 ind;
int mode;

View File

@ -136,7 +136,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 */
/***************************************************************
* parse standard options

View File

@ -135,7 +135,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 */
/***************************************************************
* parse standard options

View File

@ -135,7 +135,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 */
/***************************************************************
* parse standard options

View File

@ -137,7 +137,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 */
/***************************************************************
* parse standard options

View File

@ -136,7 +136,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 nfds = sizeof(Fds) / sizeof(int);
int ind;

View File

@ -136,7 +136,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 */
/***************************************************************
* parse standard options

View File

@ -137,7 +137,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 */
/***************************************************************
* parse standard options

View File

@ -140,7 +140,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 */
Tst_nobuf=1; /* turn off buffering in tst_ routines */

View File

@ -139,7 +139,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 */
Tst_nobuf=1; /* turn off buffering in tst_ routines */

View File

@ -138,7 +138,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 */
Tst_nobuf=1; /* turn off buffering in tst_ routines */

View File

@ -139,7 +139,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 */
Tst_nobuf=1; /* turn off buffering in tst_ routines */

View File

@ -140,7 +140,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 */
Tst_nobuf=1; /* turn off buffering in tst_ routines */

View File

@ -139,7 +139,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 */
Tst_nobuf=1; /* turn off buffering in tst_ routines */

View File

@ -133,7 +133,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 */
/***************************************************************
* parse standard options

View File

@ -133,7 +133,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 */
/***************************************************************
* parse standard options

View File

@ -136,7 +136,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 */
/***************************************************************
* parse standard options

View File

@ -136,7 +136,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 */
/***************************************************************
* parse standard options

View File

@ -136,7 +136,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 */
/***************************************************************
* parse standard options

View File

@ -137,7 +137,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 */
/***************************************************************
* parse standard options

View File

@ -193,7 +193,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 exec_return; /* return from do_exec */
int **tcp; /* testcase pointer (pointer to FD) */

View File

@ -191,7 +191,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 exec_return; /* return from do_exec */
int **tcp; /* testcase pointer (pointer to FD) */

View File

@ -136,7 +136,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 */
/***************************************************************
* parse standard options

View File

@ -137,7 +137,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 */
/***************************************************************
* parse standard options

View File

@ -137,7 +137,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 */
/***************************************************************
* parse standard options

View File

@ -199,7 +199,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 fails;
int kid_status, wait_status;

View File

@ -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 */

View File

@ -156,7 +156,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 */
/***************************************************************
* parse standard options

View File

@ -137,7 +137,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 */
/***************************************************************
* parse standard options

View File

@ -137,7 +137,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 */
/***************************************************************
* parse standard options

View File

@ -131,7 +131,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 */
;

View File

@ -131,7 +131,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 */
;

View File

@ -132,7 +132,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 */
/***************************************************************
* parse standard options

View File

@ -97,7 +97,7 @@ int
main(int ac, char **av)
{
int lc; /* loop counter */
char *ptr; /* message returned from parse_opts */
const char *ptr; /* message returned from parse_opts */
int i, /* counter */
group, /* return value from Getgid() call */

View File

@ -139,7 +139,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 */
/***************************************************************
* parse standard options

View File

@ -129,7 +129,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 */
;

View File

@ -131,7 +131,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 */
char hname[100]; /* host name */

View File

@ -132,7 +132,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 */
/***************************************************************
* parse standard options

View File

@ -130,7 +130,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 */
/***************************************************************
* parse standard options

View File

@ -132,7 +132,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 */
/***************************************************************
* parse standard options

View File

@ -132,7 +132,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 */
/***************************************************************
* parse standard options

View File

@ -135,7 +135,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 status;
/***************************************************************

View File

@ -138,7 +138,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 */
struct stat fbuf, lbuf;
/***************************************************************

View File

@ -155,7 +155,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 */
struct stat fbuf, lbuf;
int cnt;
int nlinks;

View File

@ -213,7 +213,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 */
char *fname1, *fname2;
char *desc1, *desc2;
int ind;

View File

@ -155,7 +155,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 */
struct stat fbuf, lbuf;
int cnt;
char lname[255];

View File

@ -138,7 +138,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 ind;
int offset;

View File

@ -138,7 +138,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 */
/***************************************************************
* parse standard options

View File

@ -138,7 +138,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 */
/***************************************************************
* parse standard options

View File

@ -138,7 +138,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 */
/***************************************************************
* parse standard options

View File

@ -137,7 +137,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 */
/***************************************************************
* parse standard options

View File

@ -128,7 +128,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 */
/***************************************************************

View File

@ -136,7 +136,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 */
/***************************************************************
* parse standard options

View File

@ -159,7 +159,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 */
TST_TOTAL=(sizeof(tcases)/sizeof(tcases[0]));
/***************************************************************

View File

@ -132,7 +132,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 */
/***************************************************************
* parse standard options

View File

@ -135,7 +135,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 */
/***************************************************************
* parse standard options

View File

@ -148,7 +148,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 */
TST_TOTAL=(sizeof(args)/sizeof(args[0]))-1;

View File

@ -130,7 +130,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 */
/***************************************************************
* parse standard options

View File

@ -134,7 +134,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 */
/***************************************************************
* parse standard options

View File

@ -135,7 +135,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 */
/***************************************************************
* parse standard options

View File

@ -138,7 +138,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 */
/***************************************************************
* parse standard options

View File

@ -147,7 +147,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 */
struct timeval timeout;
long test_time = 0; /* in usecs */

View File

@ -131,7 +131,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 */
/***************************************************************
* parse standard options

View File

@ -135,7 +135,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 */
/***************************************************************
* parse standard options

View File

@ -132,7 +132,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 */
/***************************************************************
* parse standard options

View File

@ -136,7 +136,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 */
/***************************************************************
* parse standard options

View File

@ -136,7 +136,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 */
/***************************************************************
* parse standard options

View File

@ -133,7 +133,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 */
/***************************************************************
* parse standard options

View File

@ -136,7 +136,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 */
/***************************************************************
* parse standard options

View File

@ -137,7 +137,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 */
/***************************************************************
* parse standard options

View File

@ -340,7 +340,7 @@ void do_open();
/*
* Lets be optimistic and only define messages for passing test cases
*/
char *msgs[] = {
const char *msgs[] = {
"Creation of symbolic link file to no object file is ok",
"Creation of symbolic link file and object file via symbolic link is ok",
"Creating an existing symbolic link file error is caught",
@ -515,7 +515,7 @@ main(int argc, char *argv[])
int do_syscalltests();
void cleanup();
int lc; /* loop counter */
char *msg; /* message returned from parse_opts */
const char *msg; /* message returned from parse_opts */
/***************************************************************

View File

@ -135,7 +135,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 */
/***************************************************************
* parse standard options

View File

@ -130,7 +130,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 */
/***************************************************************
* parse standard options

View File

@ -131,7 +131,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 */
/***************************************************************
* parse standard options

View File

@ -134,7 +134,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 */
/***************************************************************
* parse standard options

View File

@ -157,7 +157,7 @@ main(int ac, char **av)
{
int lc; /* loop counter */
int i; /* inner loop (test case) counter */
char *msg; /* message returned from parse_opts */
const char *msg; /* message returned from parse_opts */
int tmp;
TST_TOTAL = sizeof(Scenarios)/sizeof(struct limits_t);

View File

@ -132,7 +132,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 */
/***************************************************************
* parse standard options

View File

@ -133,7 +133,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 */
/***************************************************************
* parse standard options

View File

@ -136,7 +136,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 */
/***************************************************************
* parse standard options

View File

@ -139,7 +139,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 */
/***************************************************************
* parse standard options

View File

@ -166,7 +166,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 */
char *fname;
char *desc;
int ind;

View File

@ -135,7 +135,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 */
/***************************************************************
* parse standard options

View File

@ -141,7 +141,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 */
/***************************************************************
* parse standard options