projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag 'RELEASE_0_18_0'.
[m6w6/ext-http]
/
php_http_cache_api.h
diff --git
a/php_http_cache_api.h
b/php_http_cache_api.h
index d75d432125a1ef4c98b433e7e9f012ad5ea590d9..e6c0838c8cec6a62c2715b842588f1acf7194e50 100644
(file)
--- a/
php_http_cache_api.h
+++ b/
php_http_cache_api.h
@@
-74,8
+74,8
@@
static inline void *_http_etag_init(TSRMLS_D)
switch (mode)
{
case HTTP_ETAG_CRC32:
switch (mode)
{
case HTTP_ETAG_CRC32:
- ctx = emalloc(sizeof(u
nsigned
int));
- *((u
nsigned
int *) ctx) = ~0;
+ ctx = emalloc(sizeof(uint));
+ *((uint *) ctx) = ~0;
break;
case HTTP_ETAG_SHA1:
break;
case HTTP_ETAG_SHA1:
@@
-109,9
+109,9
@@
static inline void _http_etag_free(void **ctx_ptr TSRMLS_DC)
switch (mode)
{
case HTTP_ETAG_CRC32:
switch (mode)
{
case HTTP_ETAG_CRC32:
- if (*((u
nsigned
int **) ctx_ptr)) {
- efree(*((u
nsigned
int **) ctx_ptr));
- *((u
nsigned
int **) ctx_ptr) = NULL;
+ if (*((uint **) ctx_ptr)) {
+ efree(*((uint **) ctx_ptr));
+ *((uint **) ctx_ptr) = NULL;
}
break;
}
break;
@@
-154,8
+154,8
@@
static inline char *_http_etag_finish(void **ctx_ptr TSRMLS_DC)
switch (mode)
{
case HTTP_ETAG_CRC32:
switch (mode)
{
case HTTP_ETAG_CRC32:
- **((u
nsigned int **) ctx_ptr) = ~**((unsigned
int **) ctx_ptr);
- etag = http_etag_digest(*((const unsigned char **) ctx_ptr), sizeof(u
nsigned
int));
+ **((u
int **) ctx_ptr) = ~**((u
int **) ctx_ptr);
+ etag = http_etag_digest(*((const unsigned char **) ctx_ptr), sizeof(uint));
break;
case HTTP_ETAG_SHA1:
break;
case HTTP_ETAG_SHA1:
@@
-196,12
+196,12
@@
static inline void _http_etag_update(void *ctx, const char *data_ptr, size_t dat
{
case HTTP_ETAG_CRC32:
{
{
case HTTP_ETAG_CRC32:
{
- u
nsigned int i, c = *((unsigned
int *) ctx);
+ u
int i, c = *((u
int *) ctx);
for (i = 0; i < data_len; ++i) {
c = CRC32(c, data_ptr[i]);
}
for (i = 0; i < data_len; ++i) {
c = CRC32(c, data_ptr[i]);
}
- *((u
nsigned
int *)ctx) = c;
+ *((uint *)ctx) = c;
}
break;
}
break;