Changeset 3827


Ignore:
Timestamp:
Feb 28, 2014, 1:01:49 AM (11 years ago)
Author:
bird
Message:

the -aa option fixed these initialization issues.

Location:
trunk/libc/src/fbsdlibc/gen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libc/src/fbsdlibc/gen/ftw.c

    r3823 r3827  
    4242    int nfds)
    4343{
     44        char * const paths[2] = { (char *)path, NULL };
    4445        FTSENT *cur;
    4546        FTS *ftsp;
    4647        int error = 0, fnflag, sverrno;
    47         char *paths[2]; /* bird: watcom says "E1054: Expression must be constant" to the original initializer. */
    48         paths[0] = (char *)path;
    49         paths[1] = NULL;
    5048
    5149        /* XXX - nfds is currently unused */
  • trunk/libc/src/fbsdlibc/gen/nftw.c

    r3823 r3827  
    4646        FTS *ftsp;
    4747        int error = 0, ftsflags, fnflag, postorder, sverrno;
    48 #if 0 /* bird watcom says: Error! E1054: Expression must be constant */
    4948        char * const paths[2] = { (char *)path, NULL };
    50 #else
    51         char *paths[2];
    52         paths[0] = (char *)path;
    53         paths[1] = NULL;
    54 #endif
    5549
    5650        /* XXX - nfds is currently unused */
Note: See TracChangeset for help on using the changeset viewer.