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

Diff for /src/usr.bin/fmt/fmt.c between version 1.34 and 1.35

version 1.34, 2015/12/15 16:26:17 version 1.35, 2015/12/31 16:10:31
Line 174 
Line 174 
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <sysexits.h>  
 #include <unistd.h>  #include <unistd.h>
 #include <wchar.h>  #include <wchar.h>
 #include <wctype.h>  #include <wctype.h>
Line 204 
Line 203 
         }          }
         if (result <= 0) {          if (result <= 0) {
 Lose:  Lose:
                 errx(EX_USAGE, "%s", err_mess);                  errx(1, "%s", err_mess);
         }          }
   
         return (size_t) result;          return (size_t) result;
Line 324 
Line 323 
                         --argc;                          --argc;
                         ++argv;                          ++argv;
                         if (max_length < goal_length)                          if (max_length < goal_length)
                                 errx(EX_USAGE, "max length must be >= goal length");                                  errx(1, "max length must be >= goal length");
                 }                  }
         }          }
   
Line 691 
Line 690 
   
         p  = realloc(ptr, nbytes);          p  = realloc(ptr, nbytes);
         if (p == NULL)          if (p == NULL)
                 errx(EX_OSERR, "out of memory");                  errx(1, "out of memory");
         return p;          return p;
 }  }
   

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35