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

Diff for /src/usr.bin/rcs/rcs.c between version 1.5 and 1.6

version 1.5, 2006/04/29 05:31:28 version 1.6, 2006/05/01 18:17:39
Line 1121 
Line 1121 
 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 1193 
Line 1193 
         /* 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 1215 
Line 1217 
   
                                 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.5  
changed lines
  Added in v.1.6