Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/testsuite/winsup.api/ltp/rename01.c')
-rw-r--r--winsup/testsuite/winsup.api/ltp/rename01.c11
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[] = {