From: Stephan Bosch Date: Tue, 18 Aug 2015 17:39:24 +0000 (+0300) Subject: lib-http auth: Made second argument of http_auth_create_challenges() const as it... X-Git-Tag: 2.2.19.rc1~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06c6330d64196161cfce3efa0f6c90bbf4e348ad;p=thirdparty%2Fdovecot%2Fcore.git lib-http auth: Made second argument of http_auth_create_challenges() const as it should be. --- diff --git a/src/lib-http/http-auth.c b/src/lib-http/http-auth.c index 9804491e22..7dfe1d46e7 100644 --- a/src/lib-http/http-auth.c +++ b/src/lib-http/http-auth.c @@ -313,7 +313,7 @@ void http_auth_create_challenge(string_t *out, } void http_auth_create_challenges(string_t *out, - ARRAY_TYPE(http_auth_challenge) *chlngs) + const ARRAY_TYPE(http_auth_challenge) *chlngs) { const struct http_auth_challenge *chlgs; unsigned int count, i; diff --git a/src/lib-http/http-auth.h b/src/lib-http/http-auth.h index 6147735ee0..272bddf441 100644 --- a/src/lib-http/http-auth.h +++ b/src/lib-http/http-auth.h @@ -43,7 +43,7 @@ int http_auth_parse_credentials(const unsigned char *data, size_t size, void http_auth_create_challenge(string_t *out, const struct http_auth_challenge *chlng); void http_auth_create_challenges(string_t *out, - ARRAY_TYPE(http_auth_challenge) *chlngs); + const ARRAY_TYPE(http_auth_challenge) *chlngs); void http_auth_create_credentials(string_t *out, const struct http_auth_credentials *crdts);