mirror of
https://github.com/apache/httpd.git
synced 2025-08-30 15:01:14 +03:00
Fix a couple of const warnings on Linux. This basically just defines
ap_strstr and ap_strstr_c, which make sure that things are const when they need to be. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85687 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -75,4 +75,12 @@ char *ap_strrchr(char *s, int c)
|
||||
const char *ap_strrchr_c(const char *s, int c)
|
||||
{ return strrchr(s,c); }
|
||||
|
||||
#undef strstr
|
||||
|
||||
char *ap_strstr(char *s, char *c)
|
||||
{ return strstr(s,c); }
|
||||
|
||||
const char *ap_strstr_c(const char *s, const char *c)
|
||||
{ return strstr(s,c); }
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user