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/unlink07.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'winsup/testsuite/winsup.api/ltp/unlink07.c') diff --git a/winsup/testsuite/winsup.api/ltp/unlink07.c b/winsup/testsuite/winsup.api/ltp/unlink07.c index 889b60959..133109621 100644 --- a/winsup/testsuite/winsup.api/ltp/unlink07.c +++ b/winsup/testsuite/winsup.api/ltp/unlink07.c @@ -115,18 +115,17 @@ #include #include #include -#include #include /* for PATH_MAX */ #include "test.h" #include "usctest.h" void setup(); -void cleanup(); +void cleanup(void) __attribute__((noreturn)); extern char *get_high_address(); -char *TCID="unlink07"; /* Test program identifier. */ +const char *TCID="unlink07"; /* Test program identifier. */ int TST_TOTAL=6; /* Total number of test cases. */ extern int Tst_count; /* Test Case counter for tst_* routines */ @@ -139,8 +138,8 @@ char Longpathname[PATH_MAX+2]; char High_address[64]; struct test_case_t { - char *pathname; - char *desc; + const char *pathname; + const char *desc; int exp_errno; int (*setupfunc)(); } Test_cases[] = { @@ -167,8 +166,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