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

Diff for /src/usr.bin/uudecode/uudecode.c between version 1.25 and 1.26

version 1.25, 2018/12/31 13:49:52 version 1.26, 2019/03/10 20:49:24
Line 42 
Line 42 
 #include <err.h>  #include <err.h>
 #include <errno.h>  #include <errno.h>
 #include <fcntl.h>  #include <fcntl.h>
 #include <locale.h>  #include <limits.h>
 #include <pwd.h>  #include <pwd.h>
 #include <resolv.h>  #include <resolv.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <unistd.h>  #include <unistd.h>
 #include <limits.h>  
   
 static const char *infile, *outfile;  static const char *infile, *outfile;
 static FILE *infp, *outfp;  static FILE *infp, *outfp;
 static int base64, cflag, iflag, oflag, pflag, rflag, sflag;  static int base64, cflag, iflag, oflag, pflag, rflag, sflag;
   
 static void     usage(void);  static void __dead      usage(void);
 static int      decode(void);  static int      decode(void);
 static int      decode2(void);  static int      decode2(void);
 static int      uu_decode(void);  static int      uu_decode(void);
Line 82 
Line 81 
                 pmode = MODE_B64DECODE;                  pmode = MODE_B64DECODE;
         }          }
   
         setlocale(LC_ALL, "");  
         while ((ch = getopt(argc, argv, optstr[pmode])) != -1) {          while ((ch = getopt(argc, argv, optstr[pmode])) != -1) {
                 switch(ch) {                  switch(ch) {
                 case 'c':                  case 'c':
Line 153 
Line 151 
                 infp = stdin;                  infp = stdin;
                 rval = decode();                  rval = decode();
         }          }
         exit(rval);          return (rval);
 }  }
   
 static int  static int
Line 448 
Line 446 
                     "error decoding base64 input stream"));                      "error decoding base64 input stream"));
 }  }
   
 static void  static void __dead
 usage(void)  usage(void)
 {  {
         switch (pmode) {          switch (pmode) {

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26