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/rename01.c | |
parent | 1905b7393cf9555bfbebd2f6b345877609760dff (diff) |
Perform more C warning fixup on all C source files and headers.
Diffstat (limited to 'winsup/testsuite/winsup.api/ltp/rename01.c')
-rw-r--r-- | winsup/testsuite/winsup.api/ltp/rename01.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/winsup/testsuite/winsup.api/ltp/rename01.c b/winsup/testsuite/winsup.api/ltp/rename01.c index 551efe722..14ae1f245 100644 --- a/winsup/testsuite/winsup.api/ltp/rename01.c +++ b/winsup/testsuite/winsup.api/ltp/rename01.c @@ -68,17 +68,16 @@ #include <sys/types.h> #include <sys/fcntl.h> #include <sys/stat.h> -#include <unistd.h> #include <errno.h> #include "test.h" #include "usctest.h" void setup(); -void cleanup(); +void cleanup(void) __attribute__((noreturn)); extern void do_file_setup(char *); -char *TCID="rename01"; /* Test program identifier. */ +const char *TCID="rename01"; /* Test program identifier. */ int TST_TOTAL=2; /* Total number of test cases. */ extern int Tst_count; /* Test Case counter for tst_* routines */ @@ -89,9 +88,9 @@ dev_t f_olddev, d_olddev; ino_t f_oldino, d_oldino; struct test_case_t { - char *name1; - char *name2; - char *desc; + const char *name1; + const char *name2; + const char *desc; dev_t *olddev; ino_t *oldino; } TC[] = { |