X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_cache_api.h;h=3e882c9e2fd57b6a688ce9554b72d6e79dc93f49;hb=1e4135540cb45994d2fc3ef3ede3bc168a7d839c;hp=f92e30aac7c13075341afe95b59eb3a9fdaf8441;hpb=17c7ed7977e05599b03fbc2535123760ac65daf2;p=m6w6%2Fext-http diff --git a/php_http_cache_api.h b/php_http_cache_api.h index f92e30a..3e882c9 100644 --- a/php_http_cache_api.h +++ b/php_http_cache_api.h @@ -140,14 +140,14 @@ static inline void _http_etag_update(void *ctx, const char *data_ptr, size_t dat switch (INI_INT("http.etag_mode")) { case HTTP_ETAG_SHA1: - PHP_SHA1Update(ctx, data_ptr, data_len); + PHP_SHA1Update(ctx, (const unsigned char *) data_ptr, data_len); break; case HTTP_ETAG_MD5: #ifndef HAVE_LIBMHASH default: #endif - PHP_MD5Update(ctx, data_ptr, data_len); + PHP_MD5Update(ctx, (const unsigned char *) data_ptr, data_len); break; #ifdef HAVE_LIBMHASH