1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00
freebsd-ports/mail/metamail/files/patch-richmail_richtext.c
Rong-En Fan ce64dc58a7 - Make gcc4 happy
PR:		ports/106818
Submitted by:	Jean-Francois Dockes <jean-francois.dockes at wanadoo.fr> (maintainer)
2006-12-19 01:48:53 +00:00

46 lines
894 B
C

--- richmail/richtext.c.orig Wed Feb 9 17:31:18 1994
+++ richmail/richtext.c Mon Dec 18 11:46:22 2006
@@ -14,6 +14,8 @@
*/
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <ctype.h>
#include <signal.h>
#include "richlex.h"
@@ -155,6 +157,16 @@
exit(-1);
#endif
}
+static lc2strcmp(s1, s2)
+char *s1, *s2;
+{
+ if (!s1 || !s2) return (-1);
+ while (*s1 && *s2) {
+ if (*s1 != *s2 && (tolower(*s1) != *s2)) return(-1);
+ ++s1; ++s2;
+ }
+ return((*s1 == *s2) ? 0 : -1);
+}
#ifndef RICHTEXT_LIBRARY
@@ -989,16 +1001,6 @@
while(*s) (*RichtextPutc)((int)(*s++),fp);
}
-static lc2strcmp(s1, s2)
-char *s1, *s2;
-{
- if (!s1 || !s2) return (-1);
- while (*s1 && *s2) {
- if (*s1 != *s2 && (tolower(*s1) != *s2)) return(-1);
- ++s1; ++s2;
- }
- return((*s1 == *s2) ? 0 : -1);
-}
static lc2strncmp(s1, s2, len)
char *s1, *s2;