projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
246e630
)
- use const php_hash_ops*
author
Michael Wallner
<mike@php.net>
Mon, 15 Jan 2007 08:02:03 +0000
(08:02 +0000)
committer
Michael Wallner
<mike@php.net>
Mon, 15 Jan 2007 08:02:03 +0000
(08:02 +0000)
php_http_cache_api.h
patch
|
blob
|
history
diff --git
a/php_http_cache_api.h
b/php_http_cache_api.h
index dc9b515bd6897f4dde680a1dc31d07850164347a..518a5f80f534e0f2d750bc0bb176943f516c2b2e 100644
(file)
--- a/
php_http_cache_api.h
+++ b/
php_http_cache_api.h
@@
-49,7
+49,7
@@
static inline void *_http_etag_init(TSRMLS_D)
char *mode = HTTP_G->etag.mode;
#ifdef HTTP_HAVE_HASH
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);
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
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);
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
{
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);
if (mode && (eho = php_hash_fetch_ops(mode, strlen(mode)))) {
eho->hash_update(ctx, (const unsigned char *) data_ptr, data_len);