Skip to content

Commit

Permalink
Silence some more compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanesser committed Feb 12, 2012
1 parent fbab5b8 commit bb630ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion execute.c
Expand Up @@ -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);
}
/* }}} */

Expand Down
4 changes: 2 additions & 2 deletions session.c
Expand Up @@ -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;
Expand Down Expand Up @@ -544,7 +544,7 @@ char *suhosin_decrypt_string(char *str, int padded_len, char *var, int vlen, cha
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;
}
Expand Down

0 comments on commit bb630ac

Please sign in to comment.