diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2012-10-29 17:29:56 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2012-10-29 17:29:56 +0000 |
commit | 5a2770ba3837b731d96a89bd3ba6ae02a86ff42f (patch) | |
tree | b3e7d5eb5c0f847591ea6b6f1c81b1eacdcd2c9a /mail/metamail/files/patch-metamail_codes.c | |
parent | Fix build with clang (diff) |
- Fix build with clang
- Add LICENSE
PR: ports/172719
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=306624
Diffstat (limited to 'mail/metamail/files/patch-metamail_codes.c')
-rw-r--r-- | mail/metamail/files/patch-metamail_codes.c | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/mail/metamail/files/patch-metamail_codes.c b/mail/metamail/files/patch-metamail_codes.c index 140597ac45e5..d6a57f1e6b83 100644 --- a/mail/metamail/files/patch-metamail_codes.c +++ b/mail/metamail/files/patch-metamail_codes.c @@ -1,5 +1,5 @@ ---- metamail/codes.c.orig Mon Sep 20 15:13:22 1993 -+++ metamail/codes.c Mon Dec 18 11:46:21 2006 +--- metamail/codes.c.orig 1993-09-20 22:13:22.000000000 +0900 ++++ metamail/codes.c 2012-10-13 07:59:21.000000000 +0900 @@ -13,6 +13,7 @@ WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. */ @@ -8,3 +8,30 @@ #include <ctype.h> #include <config.h> +@@ -203,7 +204,7 @@ + && (Buf[0] == '-') + && (Buf[1] == '-') + && PendingBoundary(Buf, boundaries, boundaryct)) { +- return; ++ return(0); + } + fprintf(stderr, "Ignoring unrecognized boundary line: %s\n", Buf); + continue; +@@ -221,7 +222,7 @@ + } while (c4 != EOF && isspace(c4)); + if (c2 == EOF || c3 == EOF || c4 == EOF) { + fprintf(stderr, "Warning: base64 decoder saw premature EOF!\n"); +- return; ++ return(0); + } + if (c1 == '=' || c2 == '=') { + DataDone=1; +@@ -371,7 +372,7 @@ + && (Buf[0] == '-') + && (Buf[1] == '-') + && PendingBoundary(Buf, boundaries, boundaryct)) { +- return; ++ return(0); + } + /* Not a boundary, now we must treat THIS line as q-p, sigh */ + if (neednewline) { |