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

Diff for /src/usr.bin/cvs/rcsnum.c between version 1.16 and 1.17

version 1.16, 2005/09/19 15:45:16 version 1.17, 2005/10/10 13:06:24
Line 327 
Line 327 
 }  }
   
 /*  /*
    * rcsnum_dec()
    *
    * Decreases the revision number specified in <num>
    * Returns pointer to the <num> on success, or NULL on failure.
    */
   RCSNUM *
   rcsnum_dec(RCSNUM *num)
   {
           if (num->rn_id[num->rn_len - 1] <= 0)
                   return (NULL);
           num->rn_id[num->rn_len - 1]--;
           return (num);
   }
   
   /*
  * rcsnum_revtobr()   * rcsnum_revtobr()
  *   *
  * Retrieve the branch number associated with the revision number <num>.   * Retrieve the branch number associated with the revision number <num>.

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17