diff options
author | Christopher Faylor <me@cgf.cx> | 2003-01-24 04:09:40 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-01-24 04:09:40 +0300 |
commit | 31d7abadfee7da27924f7130e470ea701b39bc3e (patch) | |
tree | 71dff30bdf30a42e0ad50a3b2eef3b00e8c95d56 /winsup/testsuite/winsup.api/ltp/unlink08.c | |
parent | 1905b7393cf9555bfbebd2f6b345877609760dff (diff) |
Perform more C warning fixup on all C source files and headers.
Diffstat (limited to 'winsup/testsuite/winsup.api/ltp/unlink08.c')
-rw-r--r-- | winsup/testsuite/winsup.api/ltp/unlink08.c | 13 |
1 files changed, 6 insertions, 7 deletions
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 <sys/stat.h> #include <errno.h> #include <signal.h> -#include <unistd.h> #include <string.h> #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; /*************************************************************** |