[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.81 and 1.82

version 1.81, 2014/10/10 08:15:25 version 1.82, 2015/01/16 06:40:11
Line 24 
Line 24 
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */   */
   
   #include <sys/param.h>  /* MAXBSIZE */
 #include <sys/stat.h>  #include <sys/stat.h>
   
 #include <ctype.h>  #include <ctype.h>
Line 44 
Line 45 
 #include "rcsutil.h"  #include "rcsutil.h"
 #include "xmalloc.h"  #include "xmalloc.h"
   
   #define MINIMUM(a, b)   (((a) < (b)) ? (a) : (b))
   
 /* invalid characters in RCS states */  /* invalid characters in RCS states */
 static const char rcs_state_invch[] = RCS_STATE_INVALCHAR;  static const char rcs_state_invch[] = RCS_STATE_INVALCHAR;
   
Line 981 
Line 984 
                                 /* XXX rcsnum_cmp() is totally broken for                                  /* XXX rcsnum_cmp() is totally broken for
                                  * this purpose.                                   * this purpose.
                                  */                                   */
                                 numlen = MIN(brev->rn_len,                                  numlen = MINIMUM(brev->rn_len,
                                     rb->rb_num->rn_len - 1);                                      rb->rb_num->rn_len - 1);
                                 for (i = 0; i < numlen; i++) {                                  for (i = 0; i < numlen; i++) {
                                         if (rb->rb_num->rn_id[i] !=                                          if (rb->rb_num->rn_id[i] !=
Line 1477 
Line 1480 
 {  {
         BUF *newbuf;          BUF *newbuf;
         u_char *c, *kw, *fin;          u_char *c, *kw, *fin;
         char buf[256], *tmpf, resolved[MAXPATHLEN], *rcsfile;          char buf[256], *tmpf, resolved[PATH_MAX], *rcsfile;
         u_char *line, *line2;          u_char *line, *line2;
         u_int i, j;          u_int i, j;
         int kwtype;          int kwtype;

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82