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

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

version 1.18, 2015/11/17 17:29:27 version 1.19, 2016/10/28 07:22:59
Line 40 
Line 40 
  *      J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc.   *      J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc.
  */   */
   
   #include <err.h>
   #include <errno.h>
   #include <limits.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <limits.h>  
 #include <locale.h>  
 #include <unistd.h>  #include <unistd.h>
 #include <err.h>  
 #include <errno.h>  
   
 static void usage(void);  static void __dead usage(void);
 static void list_var(int);  static void list_var(int);
 static int compilation_spec_valid(const char *);  static int compilation_spec_valid(const char *);
   
Line 409 
Line 408 
         size_t slen;          size_t slen;
         char * sval;          char * sval;
   
         setlocale(LC_ALL, "");  
   
         while ((ch = getopt(argc, argv, "lLv:")) != -1) {          while ((ch = getopt(argc, argv, "lLv:")) != -1) {
                 switch (ch) {                  switch (ch) {
                 case 'l':       /* nonstandard: list system variables */                  case 'l':       /* nonstandard: list system variables */
Line 530 
Line 527 
                 break;                  break;
         }          }
   
         exit(ferror(stdout));          return ferror(stdout);
 }  }
   
   
 static void  static void __dead
 usage(void)  usage(void)
 {  {
         extern char *__progname;          extern char *__progname;

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