From bb630acdb0019e4bd2fdd0ade18cb77288d9422d Mon Sep 17 00:00:00 2001 From: Stefan Esser Date: Sun, 12 Feb 2012 11:03:06 +0100 Subject: Silence some more compiler warnings --- execute.c | 2 +- session.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/execute.c b/execute.c index bb092db..1ec38cd 100644 --- a/execute.c +++ b/execute.c @@ -1344,7 +1344,7 @@ static void suhosin_gen_entropy(php_uint32 *seedbuf TSRMLS_DC) suhosin_SHA256Init(&context); suhosin_SHA256Update(&context, (void *) seedbuf, sizeof(php_uint32) * 8); - suhosin_SHA256Final(seedbuf, &context); + suhosin_SHA256Final((void *)seedbuf, &context); } /* }}} */ diff --git a/session.c b/session.c index 4786afa..f045a36 100644 --- a/session.c +++ b/session.c @@ -426,7 +426,7 @@ char *suhosin_encrypt_string(char *str, int len, char *var, int vlen, char *key } /* store ip value */ - suhosin_get_ipv4(crypted+4 TSRMLS_CC); + suhosin_get_ipv4((char *)crypted+4 TSRMLS_CC); /* store check value */ crypted[8] = check & 0xff; @@ -544,7 +544,7 @@ error_out: if (check_ra > 4) { check_ra = 4; } - suhosin_get_ipv4(&buf TSRMLS_CC); + suhosin_get_ipv4(&buf[0] TSRMLS_CC); if (memcmp(buf, decrypted+4, check_ra) != 0) { goto error_out; } -- cgit v1.3