summaryrefslogtreecommitdiff
path: root/sha256.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2016-01-29 13:55:22 +0100
committerBen Fuhrmannek2016-01-29 13:55:22 +0100
commitd209a0a5962e62de134b56495349028e1fa97f76 (patch)
treee720aa57d4677c9b2f64e36b268bdcebf4a8220d /sha256.c
parent39d0c84c8467ccd2272d10c858f8f746c26904c4 (diff)
code cleanup for a fresh start
Diffstat (limited to 'sha256.c')
-rw-r--r--sha256.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sha256.c b/sha256.c
index bf938c4..2ab5a0e 100644
--- a/sha256.c
+++ b/sha256.c
@@ -93,7 +93,7 @@ static PHP_FUNCTION(suhosin_sha256_file)
93 93
94 suhosin_SHA256Init(&context); 94 suhosin_SHA256Init(&context);
95 95
96 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { 96 while ((n = php_stream_read(stream, (char*)buf, sizeof(buf))) > 0) {
97 suhosin_SHA256Update(&context, buf, n); 97 suhosin_SHA256Update(&context, buf, n);
98 } 98 }
99 99
@@ -394,7 +394,7 @@ static zend_function_entry suhosin_sha256_functions[] = {
394void suhosin_hook_sha256(TSRMLS_D) 394void suhosin_hook_sha256(TSRMLS_D)
395{ 395{
396 /* check if we already have sha256 support */ 396 /* check if we already have sha256 support */
397 if (zend_hash_str_find(CG(function_table), "sha256", sizeof("sha256"))) { 397 if (zend_hash_str_find(CG(function_table), ZEND_STRL("sha256"))) {
398 return; 398 return;
399 } 399 }
400 400