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/unlink08.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'winsup/testsuite/winsup.api/ltp/unlink08.c') diff --git a/winsup/testsuite/winsup.api/ltp/unlink08.c b/winsup/testsuite/winsup.api/ltp/unlink08.c index a426aa03f..e793b46f2 100644 --- a/winsup/testsuite/winsup.api/ltp/unlink08.c +++ b/winsup/testsuite/winsup.api/ltp/unlink08.c @@ -114,17 +114,16 @@ #include #include #include -#include #include #include "test.h" #include "usctest.h" void setup(); -void cleanup(); +void cleanup(void) __attribute__((noreturn)); -char *TCID="unlink08"; /* Test program identifier. */ +const char *TCID="unlink08"; /* Test program identifier. */ int TST_TOTAL=3; /* Total number of test cases. */ extern int Tst_count; /* Test Case counter for tst_* routines */ @@ -136,8 +135,8 @@ int dir_setup(); int no_setup(); struct test_case_t { - char *pathname; - char *desc; + const char *pathname; + const char *desc; int (*setupfunc)(); int exp_ret; /* -1 means error, 0 means != -1 */ int exp_errno; @@ -163,8 +162,8 @@ main(int ac, char **av) { int lc; /* loop counter */ const char *msg; /* message returned from parse_opts */ - char *fname; - char *desc; + const char *fname; + const char *desc; int ind; /*************************************************************** -- cgit v1.2.3