[BACK]Return to entries.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/entries.c between version 1.8 and 1.9

version 1.8, 2004/07/30 17:37:13 version 1.9, 2004/08/03 14:48:02
Line 232 
Line 232 
   
   
 /*  /*
    * cvs_ent_remove()
    *
    * Remove an entry from the Entries file <ef>.  The entry's name is given
    * by <name>.
    */
   
   int
   cvs_ent_remove(CVSENTRIES *ef, const char *name)
   {
           struct cvs_ent *ent;
   
           ent = cvs_ent_get(ef, name);
           if (ent == NULL)
                   return (-1);
   
           TAILQ_REMOVE(&(ef->cef_ent), ent, ce_list);
           cvs_ent_free(ent);
   
           ef->cef_flags &= ~CVS_ENTF_SYNC;
   
           return (0);
   }
   
   
   /*
  * cvs_ent_get()   * cvs_ent_get()
  *   *
  * Get the CVS entry from the Entries file <ef> whose 'name' portion matches   * Get the CVS entry from the Entries file <ef> whose 'name' portion matches

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9