Changeset 76d04a0 in rtems


Ignore:
Timestamp:
Oct 18, 2011, 9:21:32 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, 5, master
Children:
49755cfd
Parents:
5ae9228
Message:

2011-10-18 Ralf Corsépius <ralf.corsepius@…>

  • libmisc/shell/fts.c: Conditionally use var "nostat".
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r5ae9228 r76d04a0  
    112011-10-18      Ralf Corsépius <ralf.corsepius@rtems.org>
    22
     3        * libmisc/shell/fts.c: Conditionally use var "nostat".
    34        * pppd/options.c: Remove unused var "ok".
    45        * libnetworking/rtems/rtems_dhcp.c: Remove unused var
  • cpukit/libmisc/shell/fts.c

    r5ae9228 r76d04a0  
    644644        void *oldaddr;
    645645        size_t dnamlen;
    646         int cderrno, descend, level, nlinks, saved_errno, nostat, doadjust;
     646        int cderrno, descend, level, nlinks, saved_errno;
     647#ifdef DT_DIR
     648        int nostat;
     649#endif
     650        int doadjust;
    647651        size_t len, maxlen;
    648652#ifdef FTS_WHITEOUT
     
    683687        if (type == BNAMES) {
    684688                nlinks = 0;
     689#ifdef DT_DIR
    685690                nostat = 1;
     691#endif
    686692        } else if (ISSET(FTS_NOSTAT) && ISSET(FTS_PHYSICAL)) {
    687693                nlinks = cur->fts_nlink - (ISSET(FTS_SEEDOT) ? 0 : 2);
     694#ifdef DT_DIR
    688695                nostat = 1;
     696#endif
    689697        } else {
    690698                nlinks = -1;
     699#ifdef DT_DIR
    691700                nostat = 0;
     701#endif
    692702        }
    693703
Note: See TracChangeset for help on using the changeset viewer.