Commit 0febe670 authored by Jeff Trawick's avatar Jeff Trawick
Browse files

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


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90235 13f79535-47bb-0310-9956-ffa450edef68
parent 24ceb1d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1545,7 +1545,7 @@ char *ap_strchr(char *s, int c);
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 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ const char *ap_strrchr_c(const char *s, int c)
{
    return strrchr(s,c);
}
char *ap_strstr(char *s, char *c)
char *ap_strstr(char *s, const char *c)
{
    return strstr(s,c);
}