summaryrefslogtreecommitdiff
path: root/mail/metamail/files/patch-richmail_richtext.c
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2012-10-29 17:29:56 +0000
committerPawel Pekala <pawel@FreeBSD.org>2012-10-29 17:29:56 +0000
commit5a2770ba3837b731d96a89bd3ba6ae02a86ff42f (patch)
treeb3e7d5eb5c0f847591ea6b6f1c81b1eacdcd2c9a /mail/metamail/files/patch-richmail_richtext.c
parentFix build with clang (diff)
- Fix build with clang
- Add LICENSE PR: ports/172719 Submitted by: KATO Tsuguru <tkato432@yahoo.com> Feature safe: yes
Diffstat (limited to 'mail/metamail/files/patch-richmail_richtext.c')
-rw-r--r--mail/metamail/files/patch-richmail_richtext.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/mail/metamail/files/patch-richmail_richtext.c b/mail/metamail/files/patch-richmail_richtext.c
index 2dd6b686a41e..8e6d5e6be68f 100644
--- a/mail/metamail/files/patch-richmail_richtext.c
+++ b/mail/metamail/files/patch-richmail_richtext.c
@@ -1,5 +1,5 @@
---- richmail/richtext.c.orig Wed Feb 9 17:31:18 1994
-+++ richmail/richtext.c Mon Dec 18 11:46:22 2006
+--- richmail/richtext.c.orig 1994-02-10 01:31:18.000000000 +0900
++++ richmail/richtext.c 2012-10-13 08:07:01.000000000 +0900
@@ -14,6 +14,8 @@
*/
@@ -26,6 +26,24 @@
#ifndef RICHTEXT_LIBRARY
+@@ -910,7 +922,7 @@
+ FILE *fp;
+ {
+ int inmargin=1;
+- if (!s) return;
++ if (!s) return(0);
+ while (s -> ch) {
+ if (inmargin && (s -> ch) == ' ') {
+ controloutput(MoveRight, 1);
+@@ -932,7 +944,7 @@
+ *BoldOn, *BoldOff;
+ {
+ if (OverStrike)
+- return;
++ return(0);
+
+ /* We always turn back on the appropriate terminal modes, because
+ on some terminals one thing turns off all of them */
@@ -989,16 +1001,6 @@
while(*s) (*RichtextPutc)((int)(*s++),fp);
}