diff options
author | Stefan Eissing <icing@apache.org> | 2015-08-19 16:55:26 +0200 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2015-08-19 16:55:26 +0200 |
commit | 2c5662ff2be8abb3339ab562863426f88621ade7 (patch) | |
tree | abb32bdd8d4eb0a44f2350f1269fb182efcaad83 /modules/http2/h2_alt_svc.c | |
parent | mod_h2 compiles warning free in maintainer-mode (diff) | |
download | apache2-2c5662ff2be8abb3339ab562863426f88621ade7.tar.xz apache2-2c5662ff2be8abb3339ab562863426f88621ade7.zip |
replacing strchr on const char * by proper ap_ variants
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1696607 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http2/h2_alt_svc.c')
-rw-r--r-- | modules/http2/h2_alt_svc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/http2/h2_alt_svc.c b/modules/http2/h2_alt_svc.c index ab1d726484..d18ae5f20d 100644 --- a/modules/http2/h2_alt_svc.c +++ b/modules/http2/h2_alt_svc.c @@ -42,13 +42,13 @@ void h2_alt_svc_register_hooks(void) * - do not use quotation marks */ h2_alt_svc *h2_alt_svc_parse(const char *s, apr_pool_t *pool) { - const char *sep = strchr((char *)s, '='); + const char *sep = ap_strchr_c(s, '='); if (sep) { const char *alpn = apr_pstrndup(pool, s, sep - s); const char *host = NULL; int port = 0; s = sep + 1; - sep = strchr((char *)s, ':'); /* mandatory : */ + sep = ap_strchr_c(s, ':'); /* mandatory : */ if (sep) { if (sep != s) { /* optional host */ host = apr_pstrndup(pool, s, sep - s); |