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

Diff for /src/usr.bin/units/units.c between version 1.1 and 1.2

version 1.1, 1995/10/18 08:46:30 version 1.2, 1996/04/21 23:44:32
Line 1 
Line 1 
   /*      $NetBSD: units.c,v 1.6 1996/04/06 06:01:03 thorpej Exp $        */
   
 /*  /*
  * units.c   Copyright (c) 1993 by Adrian Mariano (adrian@cam.cornell.edu)   * units.c   Copyright (c) 1993 by Adrian Mariano (adrian@cam.cornell.edu)
  *   *
Line 13 
Line 15 
  *   *
  * I would appreciate (though I do not require) receiving a copy of any   * I would appreciate (though I do not require) receiving a copy of any
  * improvements you might make to this program.   * improvements you might make to this program.
  *  
  *      $Id$  
  */   */
   
 #include <ctype.h>  #include <ctype.h>
Line 625 
Line 625 
 }  }
   
   
 void  int
 main(int argc, char **argv)  main(int argc, char **argv)
 {  {
   
         struct unittype have, want;          struct unittype have, want;
         char havestr[81], wantstr[81];          char havestr[81], wantstr[81];
         char optchar;          int optchar;
         char *userfile = 0;          char *userfile = 0;
         int quiet = 0;          int quiet = 0;
   
         extern char *optarg;          extern char *optarg;
         extern int optind;          extern int optind;
   
         while (EOF != (optchar = getopt(argc, argv, "vqf:"))) {          while ((optchar = getopt(argc, argv, "vqf:")) != -1) {
                 switch (optchar) {                  switch (optchar) {
                 case 'f':                  case 'f':
                         userfile = optarg;                          userfile = optarg;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2