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

Diff for /src/usr.bin/rcs/diff.c between version 1.25 and 1.26

version 1.25, 2007/09/11 15:47:17 version 1.26, 2009/06/07 08:39:13
Line 527 
Line 527 
   
         /* XXX move the isqrt() out of the macro to avoid multiple calls */          /* XXX move the isqrt() out of the macro to avoid multiple calls */
         const u_int bound = (flags & D_MINIMAL) ? UINT_MAX :          const u_int bound = (flags & D_MINIMAL) ? UINT_MAX :
             MAX(256, (u_int)isqrt(n));              MAX(256, isqrt(n));
   
         k = 0;          k = 0;
         c[0] = newcand(0, 0, 0);          c[0] = newcand(0, 0, 0);
Line 1166 
Line 1166 
                 nc = fread(buf, 1, nc, fp);                  nc = fread(buf, 1, nc, fp);
                 if (nc > 0) {                  if (nc > 0) {
                         buf[nc] = '\0';                          buf[nc] = '\0';
   
                         buf[strcspn(buf, "\n")] = '\0';                          buf[strcspn(buf, "\n")] = '\0';
   
                         if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$') {                          if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$') {
                                 if (begins_with(buf, "private:")) {                                  if (begins_with(buf, "private:")) {
                                         if (!state)                                          if (!state)

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26