Browse Source

kill compiler warnings

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@91 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.1
Xuefer 16 years ago
parent
commit
75013592ee
  1. 4
      processor/processor.m4
  2. 2
      xcache.c

4
processor/processor.m4

@ -464,7 +464,7 @@ DEF_STRUCT_P_FUNC(`zend_op_array', , `dnl {{{
IFRESTORE(`
#ifdef ZEND_ENGINE_2
if (dst->scope) {
dst->scope = xc_get_class(processor, (int) dst->scope);
dst->scope = xc_get_class(processor, (zend_ulong) dst->scope);
xc_fix_method(processor, dst);
}
#endif
@ -484,7 +484,7 @@ DEF_STRUCT_P_FUNC(`zend_op_array', , `dnl {{{
#ifdef ZEND_ENGINE_2
IFRESTORE(`
if (dst->scope) {
dst->scope = xc_get_class(processor, (int) dst->scope);
dst->scope = xc_get_class(processor, (zend_ulong) dst->scope);
xc_fix_method(processor, dst);
}
DONE(scope)

2
xcache.c

@ -1141,7 +1141,7 @@ static int xcache_admin_auth_check(TSRMLS_D) /* {{{ */
unsigned char digest[16];
PHP_MD5Init(&context);
PHP_MD5Update(&context, Z_STRVAL_PP(pass), Z_STRLEN_PP(pass));
PHP_MD5Update(&context, (unsigned char *) Z_STRVAL_PP(pass), Z_STRLEN_PP(pass));
PHP_MD5Final(digest, &context);
md5str[0] = '\0';

Loading…
Cancel
Save