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

Diff for /src/usr.bin/less/main.c between version 1.23 and 1.24

version 1.23, 2015/11/09 16:36:10 version 1.24, 2015/11/09 16:39:13
Line 218 
Line 218 
         }          }
   
         if (missing_cap && !know_dumb)          if (missing_cap && !know_dumb)
                 error("WARNING: terminal is not fully functional", NULL_PARG);                  error("WARNING: terminal is not fully functional", NULL);
         init_mark();          init_mark();
         open_getchr();          open_getchr();
   
Line 240 
Line 240 
                  * and search for the proper line in the file.                   * and search for the proper line in the file.
                  */                   */
                 if (nifile() > 0) {                  if (nifile() > 0) {
                         error("No filenames allowed with -t option", NULL_PARG);                          error("No filenames allowed with -t option", NULL);
                         quit(QUIT_ERROR);                          quit(QUIT_ERROR);
                 }                  }
                 findtag(tagoption);                  findtag(tagoption);
Line 281 
Line 281 
         p = calloc(count, size);          p = calloc(count, size);
         if (p != NULL)          if (p != NULL)
                 return (p);                  return (p);
         error("Cannot allocate memory", NULL_PARG);          error("Cannot allocate memory", NULL);
         quit(QUIT_ERROR);          quit(QUIT_ERROR);
         /*NOTREACHED*/          /*NOTREACHED*/
         return (NULL);          return (NULL);
Line 299 
Line 299 
         va_end(ap);          va_end(ap);
   
         if (p == NULL || rv < 0) {          if (p == NULL || rv < 0) {
                 error("Cannot allocate memory", NULL_PARG);                  error("Cannot allocate memory", NULL);
                 quit(QUIT_ERROR);                  quit(QUIT_ERROR);
                 /*NOTREACHED*/                  /*NOTREACHED*/
         }          }
Line 313 
Line 313 
   
         n = strdup(str);          n = strdup(str);
         if (n == NULL) {          if (n == NULL) {
                 error("Cannot allocate memory", NULL_PARG);                  error("Cannot allocate memory", NULL);
                 quit(QUIT_ERROR);                  quit(QUIT_ERROR);
         }          }
         return (n);          return (n);

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24