FreeBSD/contrib/amd/amd/readdir.c
/*
 * Was: NEW_TOPLVL_READDIR
 * Search a chain for an entry with some name.
 * -Erez Zadok <ezk@cs.columbia.edu>
 */
NEW_TOPLVL_READDIR
Search a chain for an entry with some name.
-Erez Zadok 
NEW_TOPLVL_READDIR Search a chain for an entry with some name . - Erez Zadok
static int
key_already_in_chain(char *keyname, const nfsentry *chain)
{
  const nfsentry *tmpchain = chain;
  while (tmpchain) {
    if (keyname && tmpchain->ne_name && STREQ(keyname, tmpchain->ne_name))
        return 1;
    tmpchain = tmpchain->ne_nextentry;
  }
  return 0;
}
static int key_already_in_chain ( char * keyname , const nfsentry * chain ) { const nfsentry * tmpchain = chain ; while ( tmpchain ) { if ( keyname && tmpchain -> ne_name && STREQ ( keyname , tmpchain -> ne_name ) ) return 1 ; tmpchain = tmpchain -> ne_nextentry ; } return 0 ; }
Was: NEW_TOPLVL_READDIR
 Search a chain for an entry with some name.
Was : NEW_TOPLVL_READDIR Search a chain for an entry with some name .