From 31d7abadfee7da27924f7130e470ea701b39bc3e Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 24 Jan 2003 01:09:40 +0000 Subject: Perform more C warning fixup on all C source files and headers. --- winsup/testsuite/winsup.api/ltp/symlink01.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'winsup/testsuite/winsup.api/ltp/symlink01.c') diff --git a/winsup/testsuite/winsup.api/ltp/symlink01.c b/winsup/testsuite/winsup.api/ltp/symlink01.c index dcd6a749b..660a6d2e6 100644 --- a/winsup/testsuite/winsup.api/ltp/symlink01.c +++ b/winsup/testsuite/winsup.api/ltp/symlink01.c @@ -276,7 +276,6 @@ * *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#**/ -#include #include #include #include /* open(2) system call */ @@ -290,7 +289,7 @@ #include "usctest.h" void setup(); -void cleanup(); +void cleanup(void) __attribute__((noreturn)); void help(); void delete_files(); void do_EEXIST(); @@ -388,13 +387,13 @@ int creat_both(), creat_symlink(), creat_path_max(), ck_symlink(), */ struct all_test_cases { - char *tcid; + const char *tcid; int test_fail; int errno_val; int pass_msg; int (*test_setup)(); int (*ck_test)(); - char *fn_arg[3]; + const char *fn_arg[3]; } test_objects[] = { {SYMLINK, 0, 0, 0, creat_symlink, ck_symlink, {"%bc+eFhi!k", S_FILE, NULL}}, @@ -444,11 +443,11 @@ struct all_test_cases */ struct tcses { - char *tcid; - char *syscall; + const char *tcid; + const char *syscall; int test_cases; /* number of entries in test_objects array */ struct all_test_cases *tc_ptr; - char *desc; + const char *desc; } all_tcses[] = { { SYMLINK, "symlink", 5, &test_objects[0], @@ -486,7 +485,7 @@ struct tcses int TST_TOTAL; int TEST_RESULT; time_t a_time_value = 100; -char *TCID = NULL; +const char *TCID = NULL; char *Selectedtests = NULL; /* Name (tcid) of selected test cases */ char test_msg[BUFMAX]; char full_path[PATH_MAX+1]; @@ -593,7 +592,7 @@ main(int argc, char *argv[]) struct tcses *get_tcs_info(ptr) char *ptr; { - int ctr; + unsigned ctr; struct tcses *tcs_ptr; #if ALL @@ -2022,7 +2021,7 @@ cleanup() */ void help() { - int ind; + unsigned ind; printf(" -T id Determines which tests cases to execute:\n"); -- cgit v1.2.3