diff options
Diffstat (limited to 'winsup/testsuite/winsup.api/ltp/access01.c')
-rw-r--r-- | winsup/testsuite/winsup.api/ltp/access01.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/winsup/testsuite/winsup.api/ltp/access01.c b/winsup/testsuite/winsup.api/ltp/access01.c index aaf50cf32..e003805a0 100644 --- a/winsup/testsuite/winsup.api/ltp/access01.c +++ b/winsup/testsuite/winsup.api/ltp/access01.c @@ -137,25 +137,25 @@ extern int Tst_count; /* Test Case counter for tst_* routines */ char Fname[255]; -static struct test_case_t { - char *file; - int mode; - char *string; - int experrno; -} Test_cases[] = { - { Fname, F_OK, "F_OK", 0 }, - { Fname, X_OK, "X_OK", 0 }, - { Fname, W_OK, "W_OK", 0 }, - { Fname, R_OK, "R_OK", 0 }, -}; - -int Ntc = sizeof(Test_cases) / sizeof(struct test_case_t); /*********************************************************************** * Main ***********************************************************************/ int main(int ac, char **av) { + struct test_case_t { + char *file; + unsigned mode; + const char *string; + int experrno; + } Test_cases[] = { + { Fname, F_OK, "F_OK", 0 }, + { Fname, X_OK, "X_OK", 0 }, + { Fname, W_OK, "W_OK", 0 }, + { Fname, R_OK, "R_OK", 0 }, + }; + + int Ntc = sizeof(Test_cases) / sizeof(struct test_case_t); int lc; /* loop counter */ const char *msg; /* message returned from parse_opts */ int tc; |