Index: trunk/src/sh_mail.c
===================================================================
--- trunk/src/sh_mail.c	(revision 187)
+++ trunk/src/sh_mail.c	(revision 190)
@@ -693,5 +693,5 @@
   /* fast forward to the important part
    */
-  mptr = sl_strstr(message, _("msg="));
+  mptr = (char*)sl_strstr(message, _("msg="));
   if (mptr)
     {
@@ -702,5 +702,5 @@
     rep_serv_tab[2].data_str   = message;
 
-  mptr = sl_strstr(message, _("sev="));
+  mptr = (char*)sl_strstr(message, _("sev="));
   if (mptr)
     {
Index: trunk/src/slib.c
===================================================================
--- trunk/src/slib.c	(revision 187)
+++ trunk/src/slib.c	(revision 190)
@@ -1083,8 +1083,8 @@
  */
 
-char * sl_strstr (const char * haystack, const char * needle) 
+const char * sl_strstr (const char * haystack, const char * needle) 
 {
 #ifndef HAVE_STRSTR
-  int             i;
+  insigned int    i;
   size_t          needle_len;
   size_t          haystack_len;
