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

Diff for /src/usr.bin/unifdef/unifdef.c between version 1.18 and 1.19

version 1.18, 2015/02/17 05:16:09 version 1.19, 2015/04/18 18:28:38
Line 252 
Line 252 
 int  int
 main(int argc, char *argv[])  main(int argc, char *argv[])
 {  {
           const char *errstr;
         int opt;          int opt;
   
         while ((opt = getopt(argc, argv, "i:D:U:f:I:M:o:x:bBcdehKklmnsStV")) != -1)          while ((opt = getopt(argc, argv, "i:D:U:f:I:M:o:x:bBcdehKklmnsStV")) != -1)
Line 332 
Line 333 
                         version();                          version();
                         break;                          break;
                 case 'x':                  case 'x':
                         exitmode = atoi(optarg);                          exitmode = strtonum(optarg, 0, 2, &errstr);
                         if(exitmode < 0 || exitmode > 2)                          if (errstr)
                                 usage();                                  errx(1, "-x %s: %s", optarg, errstr);
                         break;                          break;
                 default:                  default:
                         usage();                          usage();

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19