patch-src_metamail_codes_c 975 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. $OpenBSD: patch-src_metamail_codes_c,v 1.2 2017/05/25 17:47:08 espie Exp $
  2. Index: src/metamail/codes.c
  3. --- src/metamail/codes.c.orig
  4. +++ src/metamail/codes.c
  5. @@ -13,6 +13,7 @@ OF THIS MATERIAL FOR ANY PURPOSE. IT IS PROVIDED "AS
  6. WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  7. */
  8. #include <stdio.h>
  9. +#include <string.h>
  10. #include <ctype.h>
  11. #include <config.h>
  12. @@ -31,6 +32,9 @@ static char index_64[128] = {
  13. 41,42,43,44, 45,46,47,48, 49,50,51,-1, -1,-1,-1,-1
  14. };
  15. +void from64(FILE *, FILE *, char **, int *, int);
  16. +void fromqp(FILE *, FILE *, char **, int *);
  17. +
  18. #define char64(c) (((c) < 0 || (c) > 127) ? -1 : index_64[(c)])
  19. /*
  20. @@ -174,6 +178,7 @@ int PortableNewlines;
  21. }
  22. #endif
  23. +void
  24. from64(infile, outfile, boundaries, boundaryct, PortableNewlines)
  25. FILE *infile, *outfile;
  26. char **boundaries;
  27. @@ -350,6 +355,7 @@ FILE *infile, *outfile;
  28. }
  29. }
  30. +void
  31. fromqp(infile, outfile, boundaries, boundaryct)
  32. FILE *infile, *outfile;
  33. char **boundaries;