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

Diff for /src/usr.bin/arch/arch.c between version 1.3 and 1.4

version 1.3, 1999/08/19 22:17:38 version 1.4, 1999/08/20 09:20:39
Line 32 
Line 32 
 static char rcsid[] = "$OpenBSD$";  static char rcsid[] = "$OpenBSD$";
 #endif /* not lint */  #endif /* not lint */
   
 #include <stdio.h>  
 #include <locale.h>  
 #include <unistd.h>  
 #include <sys/param.h>  #include <sys/param.h>
 #include <sys/utsname.h>  
 #include <err.h>  #include <err.h>
   #include <locale.h>
   #include <stdio.h>
   #include <unistd.h>
   
 static void usage __P((void));  static void usage __P((void));
   
Line 53 
Line 53 
         char *opts;          char *opts;
         int c;          int c;
         int short_form = 0;          int short_form = 0;
           extern char *__progname;
   
         setlocale(LC_ALL, "");          setlocale(LC_ALL, "");
   
         machine = strcmp (argv[0], "machine") == 0;          machine = strcmp(__progname, "machine") == 0;
         if (machine) {          if (machine) {
                 arch = MACHINE;                  arch = MACHINE;
                 opts = "a";                  opts = "a";
Line 78 
Line 79 
                                 break;                                  break;
                         default:                          default:
                                 usage();                                  usage();
                                 /* NOTREASCHED */                                  /* NOTREACHED */
                 }                  }
         if (optind != argc) {          if (optind != argc) {
                 usage();                  usage();

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4