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