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

Diff for /src/usr.bin/make/main.c between version 1.121 and 1.122

version 1.121, 2016/10/21 16:12:38 version 1.122, 2017/04/20 03:04:11
Line 310 
Line 310 
                         Lst_AtEnd(&makefiles, optarg);                          Lst_AtEnd(&makefiles, optarg);
                         break;                          break;
                 case 'j': {                  case 'j': {
                    char *endptr;                          const char *errstr;
   
                         forceJobs = true;                          forceJobs = true;
                         maxJobs = strtol(optarg, &endptr, 0);                          maxJobs = strtonum(optarg, 1, INT_MAX, &errstr);
                         if (endptr == optarg) {                          if (errstr != NULL) {
                                 fprintf(stderr,                                  fprintf(stderr,
                                         "make: illegal argument to -j option -- %s -- not a number\n",                                      "make: illegal argument to -j option"
                                         optarg);                                      " -- %s -- %s\n", optarg, errstr);
                                 usage();                                  usage();
                         }                          }
                         record_option(c, optarg);                          record_option(c, optarg);

Legend:
Removed from v.1.121  
changed lines
  Added in v.1.122