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

Diff for /src/usr.bin/hexdump/odsyntax.c between version 1.21 and 1.22

version 1.21, 2010/10/08 14:26:12 version 1.22, 2013/11/20 21:21:50
Line 250 
Line 250 
                 extensions:                  extensions:
                         type_string++;                          type_string++;
                         y = 2;                          y = 2;
                         if (isupper(*type_string)) {                          if (isupper((unsigned char)*type_string)) {
                                 switch(*type_string) {                                  switch(*type_string) {
                                 case 'C':                                  case 'C':
                                         nbytes = sizeof(char);                                          nbytes = sizeof(char);
Line 270 
Line 270 
                                         oldusage();                                          oldusage();
                                 }                                  }
                                 type_string++;                                  type_string++;
                         } else if (isdigit(*type_string))                          } else if (isdigit((unsigned char)*type_string))
                                 nbytes = strtol(type_string, &type_string, 10);                                  nbytes = strtol(type_string, &type_string, 10);
                         else                          else
                                 nbytes = 4;                                  nbytes = 4;

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22