X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_cache_api.h;h=d26710eea5491d9f7aa0605ef7f515be0a4a2244;hp=dc9b515bd6897f4dde680a1dc31d07850164347a;hb=20ee94e8fcdec7568c62e8791d4dd324e13323f9;hpb=84a00407857506ab8cfb9335cbe5f495a68e0880 diff --git a/php_http_cache_api.h b/php_http_cache_api.h index dc9b515..d26710e 100644 --- a/php_http_cache_api.h +++ b/php_http_cache_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2006, Michael Wallner | + | Copyright (c) 2004-2007, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -49,7 +49,7 @@ static inline void *_http_etag_init(TSRMLS_D) char *mode = HTTP_G->etag.mode; #ifdef HTTP_HAVE_HASH - php_hash_ops *eho = NULL; + const php_hash_ops *eho = NULL; if (mode && (eho = php_hash_fetch_ops(mode, strlen(mode)))) { ctx = emalloc(eho->context_size); @@ -75,7 +75,7 @@ static inline char *_http_etag_finish(void *ctx TSRMLS_DC) char *etag = NULL, *mode = HTTP_G->etag.mode; #ifdef HTTP_HAVE_HASH - php_hash_ops *eho = NULL; + const php_hash_ops *eho = NULL; if (mode && (eho = php_hash_fetch_ops(mode, strlen(mode)))) { eho->hash_final(digest, ctx); @@ -102,7 +102,7 @@ static inline void _http_etag_update(void *ctx, const char *data_ptr, size_t dat { char *mode = HTTP_G->etag.mode; #ifdef HTTP_HAVE_HASH - php_hash_ops *eho = NULL; + const php_hash_ops *eho = NULL; if (mode && (eho = php_hash_fetch_ops(mode, strlen(mode)))) { eho->hash_update(ctx, (const unsigned char *) data_ptr, data_len);