* winsup.api/ltp/access01.c: Avoid compilation error if X_OK
isn't declared as a constant.
This commit is contained in:
parent
85057d174f
commit
766de5ad55
|
@ -1,3 +1,8 @@
|
||||||
|
2001-03-10 Egor Duda <deo@logos-m.ru>
|
||||||
|
|
||||||
|
* winsup.api/ltp/access01.c: Avoid compilation error if X_OK
|
||||||
|
isn't declared as a constant.
|
||||||
|
|
||||||
2001-03-09 Egor Duda <deo@logos-m.ru>
|
2001-03-09 Egor Duda <deo@logos-m.ru>
|
||||||
|
|
||||||
* config/default.exp: Remove unneeded debugging output.
|
* config/default.exp: Remove unneeded debugging output.
|
||||||
|
|
|
@ -137,10 +137,16 @@ extern int Tst_count; /* Test Case counter for tst_* routines */
|
||||||
|
|
||||||
char Fname[255];
|
char Fname[255];
|
||||||
|
|
||||||
static struct test_case_t {
|
|
||||||
|
/***********************************************************************
|
||||||
|
* Main
|
||||||
|
***********************************************************************/
|
||||||
|
int main(int ac, char **av)
|
||||||
|
{
|
||||||
|
struct test_case_t {
|
||||||
char *file;
|
char *file;
|
||||||
int mode;
|
unsigned mode;
|
||||||
char *string;
|
const char *string;
|
||||||
int experrno;
|
int experrno;
|
||||||
} Test_cases[] = {
|
} Test_cases[] = {
|
||||||
{ Fname, F_OK, "F_OK", 0 },
|
{ Fname, F_OK, "F_OK", 0 },
|
||||||
|
@ -150,12 +156,6 @@ static struct test_case_t {
|
||||||
};
|
};
|
||||||
|
|
||||||
int Ntc = sizeof(Test_cases) / sizeof(struct test_case_t);
|
int Ntc = sizeof(Test_cases) / sizeof(struct test_case_t);
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* Main
|
|
||||||
***********************************************************************/
|
|
||||||
int main(int ac, char **av)
|
|
||||||
{
|
|
||||||
int lc; /* loop counter */
|
int lc; /* loop counter */
|
||||||
const char *msg; /* message returned from parse_opts */
|
const char *msg; /* message returned from parse_opts */
|
||||||
int tc;
|
int tc;
|
||||||
|
|
Loading…
Reference in New Issue