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

Diff for /src/usr.bin/spell/spellprog.c between version 1.13 and 1.14

version 1.13, 2017/07/28 17:16:35 version 1.14, 2019/03/10 20:45:11
Line 72 
Line 72 
 #include <errno.h>  #include <errno.h>
 #include <fcntl.h>  #include <fcntl.h>
 #include <limits.h>  #include <limits.h>
 #include <locale.h>  
 #include <stdint.h>  #include <stdint.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
Line 108 
Line 107 
 void     ise(void);  void     ise(void);
 void     print_word(FILE *);  void     print_word(FILE *);
 void     ztos(char *);  void     ztos(char *);
 __dead void usage(void);  static void __dead usage(void);
   
 /* from look.c */  /* from look.c */
 int      look(unsigned char *, unsigned char *, unsigned char *);  int      look(unsigned char *, unsigned char *, unsigned char *);
Line 247 
Line 246 
         struct stat sb;          struct stat sb;
         FILE *file, *found;          FILE *file, *found;
   
         setlocale(LC_ALL, "");  
   
         if (pledge("stdio rpath wpath cpath", NULL) == -1)          if (pledge("stdio rpath wpath cpath", NULL) == -1)
                 err(1, "pledge");                  err(1, "pledge");
   
Line 316 
Line 313 
                         if (ch == EOF) {                          if (ch == EOF) {
                                 if (found != NULL)                                  if (found != NULL)
                                         fclose(found);                                          fclose(found);
                                 exit(0);                                  return (0);
                         }                          }
                 }                  }
                 for (cp = word, dp = original; cp < ep; )                  for (cp = word, dp = original; cp < ep; )
Line 345 
Line 342 
                 file = stdout;                  file = stdout;
         }          }
   
         exit(0);          return (0);
 }  }
   
 void  void
Line 788 
Line 785 
         return (rval);          return (rval);
 }  }
   
 __dead void  static void __dead
 usage(void)  usage(void)
 {  {
         extern char *__progname;          extern char *__progname;

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14