You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2001/08/16 20:07:06 UTC
cvs commit: httpd-2.0/server util_debug.c
trawick 01/08/16 11:07:06
Modified: include httpd.h
server util_debug.c
Log:
the 2nd parm to strstr() doesn't lose const-ness, unlike the 1st parm;
thus, AP_DEBUG flavor of strstr() should declare 2nd parm as const char *,
not char *;
this eliminates a warning in mod_ssl-land
Revision Changes Path
1.160 +1 -1 httpd-2.0/include/httpd.h
Index: httpd.h
===================================================================
RCS file: /home/cvs/httpd-2.0/include/httpd.h,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -r1.159 -r1.160
--- httpd.h 2001/08/15 21:11:57 1.159
+++ httpd.h 2001/08/16 18:07:06 1.160
@@ -1545,7 +1545,7 @@
const char *ap_strchr_c(const char *s, int c);
char *ap_strrchr(char *s, int c);
const char *ap_strrchr_c(const char *s, int c);
-char *ap_strstr(char *s, char *c);
+char *ap_strstr(char *s, const char *c);
const char *ap_strstr_c(const char *s, const char *c);
#else
1.6 +1 -1 httpd-2.0/server/util_debug.c
Index: util_debug.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/util_debug.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- util_debug.c 2001/02/18 02:58:53 1.5
+++ util_debug.c 2001/08/16 18:07:06 1.6
@@ -85,7 +85,7 @@
{
return strrchr(s,c);
}
-char *ap_strstr(char *s, char *c)
+char *ap_strstr(char *s, const char *c)
{
return strstr(s,c);
}