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

Diff for /src/usr.bin/newsyslog/newsyslog.c between version 1.94 and 1.95

version 1.94, 2015/02/08 23:40:34 version 1.95, 2015/08/20 22:32:41
Line 225 
Line 225 
                 p = x;                  p = x;
         }          }
   
         pidlist = (struct pidinfo *)calloc(listlen + 1, sizeof(struct pidinfo));          pidlist = calloc(listlen + 1, sizeof(struct pidinfo));
         if (pidlist == NULL)          if (pidlist == NULL)
                 err(1, "calloc");                  err(1, "calloc");
   
Line 1019 
Line 1019 
   
         /* Now see if current size is larger. */          /* Now see if current size is larger. */
         if (sb.st_size > osize) {          if (sb.st_size > osize) {
                 rb = (char *) malloc(sb.st_size - osize);                  rb = malloc(sb.st_size - osize);
                 if (rb == NULL)                  if (rb == NULL)
                         err(1, "malloc");                          err(1, "malloc");
   

Legend:
Removed from v.1.94  
changed lines
  Added in v.1.95