Index: /trunk/docs/Changelog
===================================================================
--- /trunk/docs/Changelog	(revision 189)
+++ /trunk/docs/Changelog	(revision 190)
@@ -1,3 +1,6 @@
-2.5.0:
+2.5.1:
+	* constness patch by Joe MacDonald
+	
+2.5.0 (01-11-2008):
 	* dnmalloc.c: fix inconsistent chunksize on 64bit systems
 	* fix improved error reporting for failed fstat in checksumming
Index: /trunk/include/slib.h
===================================================================
--- /trunk/include/slib.h	(revision 189)
+++ /trunk/include/slib.h	(revision 190)
@@ -200,5 +200,5 @@
    * strstr
    */
-  char * sl_strstr (const char * haystack, const char * needle); 
+  const char * sl_strstr (const char * haystack, const char * needle); 
 
   /*
Index: /trunk/src/sh_mail.c
===================================================================
--- /trunk/src/sh_mail.c	(revision 189)
+++ /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 189)
+++ /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;
