From a815a4d64f594b6c2ee7270935263289cc42f64d Mon Sep 17 00:00:00 2001 From: Douglas William Thrift Date: Tue, 17 Nov 2009 04:54:43 +0000 Subject: [PATCH] Fix on Linux?! --- sig/parse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sig/parse.cpp b/sig/parse.cpp index 24de0bc..7fc663f 100644 --- a/sig/parse.cpp +++ b/sig/parse.cpp @@ -81,7 +81,7 @@ void Parse_(apr_pool_t *pool, struct Signature *signature, const char **name, ch if (**name != '"') element->name = NULL; else { - char *quote = strchr(++*name, '"'); + const char *quote = strchr(++*name, '"'); element->name = apr_pstrmemdup(pool, *name, quote - *name); *name = quote + 1; } @@ -126,7 +126,7 @@ struct Type *Parse_(apr_pool_t *pool, const char **name, char eos, bool named, C case '@': if (**name == '"') { - char *quote = strchr(*name + 1, '"'); + const char *quote = strchr(*name + 1, '"'); if (!named || quote[1] == eos || quote[1] == '"') { type->name = apr_pstrmemdup(pool, *name + 1, quote - *name - 1); *name = quote + 1; -- 2.45.2