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

Diff for /src/usr.bin/rcs/rcsprog.c between version 1.63 and 1.64

version 1.63, 2006/02/21 16:39:23 version 1.64, 2006/03/06 09:41:53
Line 80 
Line 80 
   
         if ((*rev = rcsnum_parse(str)) == NULL)          if ((*rev = rcsnum_parse(str)) == NULL)
                 fatal("bad revision number '%s'", str);                  fatal("bad revision number '%s'", str);
         /*          /*
          * If 0 is specified as a revision number, exit and warn the user.           * If 0 is specified as a revision number, exit and warn the user.
          * This differs from GNU ci's plainly buggy behaviour, where 0 ends up           * This differs from GNU ci's plainly buggy behaviour, where 0 ends up
          * being 0.1 and other weird stuff.           * being 0.1 and other weird stuff.
Line 91 
Line 91 
         rcsnum_free(t);          rcsnum_free(t);
         /*          /*
          * If 1 is specified as revision number, silently assume 1.1.           * If 1 is specified as revision number, silently assume 1.1.
          * This is what GNU ci does.           * This is what GNU ci does.
          */           */
         t = rcsnum_parse(RCS_HEAD_INIT);          t = rcsnum_parse(RCS_HEAD_INIT);
         if (rcsnum_cmp(*rev, t, 0) > 0)          if (rcsnum_cmp(*rev, t, 0) > 0)
                 rcsnum_cpy(t, *rev, 0);                  rcsnum_cpy(t, *rev, 0);
         rcsnum_free(t);          rcsnum_free(t);
   
 }  }
   
 /*  /*

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64