[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.21 and 1.22

version 1.21, 2004/12/14 21:23:44 version 1.22, 2005/01/14 16:39:21
Line 246 
Line 246 
         if (ent == NULL)          if (ent == NULL)
                 return (-1);                  return (-1);
   
           if (ef->cef_cur == ent) {
                   /* if this element was the last one retrieved through a
                    * call to cvs_ent_next(), point to the next element to avoid
                    * keeping an invalid reference.
                    */
                   ef->cef_cur = TAILQ_NEXT(ef->cef_cur, ce_list);
           }
         TAILQ_REMOVE(&(ef->cef_ent), ent, ce_list);          TAILQ_REMOVE(&(ef->cef_ent), ent, ce_list);
         cvs_ent_free(ent);          cvs_ent_free(ent);
   
           if (TAILQ_EMPTY(&(ef->cef_ent)))        /* reset */
                   TAILQ_INIT(&(ef->cef_ent));
   
         ef->cef_flags &= ~CVS_ENTF_SYNC;          ef->cef_flags &= ~CVS_ENTF_SYNC;
   

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22