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

Diff for /src/usr.bin/cvs/rcs.c between version 1.170 and 1.171

version 1.170, 2006/04/25 10:31:39 version 1.171, 2006/05/01 18:17:39
Line 1163 
Line 1163 
 rcs_getrev(RCSFILE *rfp, RCSNUM *frev)  rcs_getrev(RCSFILE *rfp, RCSNUM *frev)
 {  {
         u_int i, numlen;          u_int i, numlen;
         int isbranch, lookonbranch;          int isbranch, lookonbranch, found;
         size_t len;          size_t len;
         void *bp;          void *bp;
         RCSNUM *crev, *rev, *brev;          RCSNUM *crev, *rev, *brev;
Line 1235 
Line 1235 
         /* Apply patches backwards to get the right version.          /* Apply patches backwards to get the right version.
          */           */
         do {          do {
                   found = 0;
   
                 if (rcsnum_cmp(rfp->rf_head, rev, 0) == 0)                  if (rcsnum_cmp(rfp->rf_head, rev, 0) == 0)
                         break;                          break;
   
Line 1257 
Line 1259 
   
                                 if (i == numlen) {                                  if (i == numlen) {
                                         crev = rb->rb_num;                                          crev = rb->rb_num;
                                           found = 1;
                                         break;                                          break;
                                 }                                  }
                         }                          }
                           if (found == 0)
                                   crev = rdp->rd_next;
                 } else {                  } else {
                         crev = rdp->rd_next;                          crev = rdp->rd_next;
                 }                  }

Legend:
Removed from v.1.170  
changed lines
  Added in v.1.171