[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.10 and 1.11

version 1.10, 2002/02/16 21:27:47 version 1.11, 2002/04/08 15:59:05
Line 191 
Line 191 
                                 warnx(                                  warnx(
 "hexdump(1) compatibility doesn't support the -%c option%s\n",  "hexdump(1) compatibility doesn't support the -%c option%s\n",
                                     ch, ch == 's' ? "; see strings(1)." : ".");                                      ch, ch == 's' ? "; see strings(1)." : ".");
                         usage();                          oldusage();
                 }                  }
   
         if (!fshead) {          if (!fshead) {
Line 238 
Line 238 
                                 add("2/8 \" %16.14e\" \"\\n\"");                                  add("2/8 \" %16.14e\" \"\\n\"");
                         } else if (*type_string == 'D')                          } else if (*type_string == 'D')
                                 /* long doubles vary in size */                                  /* long doubles vary in size */
                                 usage();                                  oldusage();
                         else                          else
                                 add("2/8 \" %16.14e\" \"\\n\"");                                  add("2/8 \" %16.14e\" \"\\n\"");
                         break;                          break;
Line 273 
Line 273 
                                 default:                                  default:
                                         warnx("Bad type-size qualifier '%c'",                                          warnx("Bad type-size qualifier '%c'",
                                             *type_string);                                              *type_string);
                                         usage();                                          oldusage();
                                 }                                  }
                                 type_string++;                                  type_string++;
                         } else if (isdigit(*type_string))                          } else if (isdigit(*type_string))
Line 295 
Line 295 
                         default:                          default:
                                 warnx("%d-byte integer formats are not "                                  warnx("%d-byte integer formats are not "
                                     "supported", nbytes);                                      "supported", nbytes);
                                 usage();                                  oldusage();
                         }                          }
                         add(fmt[x][y]);                          add(fmt[x][y]);
                         break;                          break;
                 default:                  default:
                         usage();                          oldusage();
                 }                  }
         }          }
   }
   
   void
   oldusage()
   {
           extern char *__progname;
           fprintf(stderr, "usage: %s [-aBbcDdeFfHhIiLlOovXx] [-j skip] "
                           "[-N length] [-t type_string] "
                           "[[+]offset[.][Bb]] [file ...]\n", __progname);
           exit(1);
 }  }
   
 static void  static void

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11