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/unlink08.c')
-rw-r--r--winsup/testsuite/winsup.api/ltp/unlink08.c13
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;
/***************************************************************