1
0
Fork 0

fixed #96, wrong format string for sprintf

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@391 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 2007-05-23 01:00:26 +00:00
parent 69008a5d9b
commit 4aa7c33b6b
3 changed files with 3 additions and 3 deletions

2
mem.c
View File

@ -294,7 +294,7 @@ static XC_MEM_INIT(xc_mem_init) /* {{{ */
#define MINSIZE (ALIGN(sizeof(xc_mem_t)) + sizeof(xc_block_t))
/* requires at least the header and 1 tail block */
if (size < MINSIZE) {
fprintf(stderr, "xc_mem_init requires %d bytes at least\n", MINSIZE);
fprintf(stderr, "xc_mem_init requires %lu bytes at least\n", (unsigned long) MINSIZE);
return NULL;
}
mem->shm = shm;

View File

@ -120,7 +120,7 @@ static XC_MEM_INIT(xc_mem_malloc_init) /* {{{ */
#define MINSIZE (ALIGN(sizeof(xc_mem_t)))
/* requires at least the header and 1 tail block */
if (size < MINSIZE) {
fprintf(stderr, "xc_mem_malloc_init requires %d bytes at least\n", MINSIZE);
fprintf(stderr, "xc_mem_malloc_init requires %lu bytes at least\n", (unsigned long) MINSIZE);
return NULL;
}
mem->shm = shm;

View File

@ -1741,7 +1741,7 @@ static int xcache_admin_auth_check(TSRMLS_D) /* {{{ */
zend_bailout();
}
if (strlen(admin_pass) != 32) {
php_error_docref(NULL TSRMLS_CC, E_ERROR, "unexpect %d bytes of xcache.admin.pass, expected 32 bytes, the password after md5()", strlen(admin_pass));
php_error_docref(NULL TSRMLS_CC, E_ERROR, "unexpect %lu bytes of xcache.admin.pass, expected 32 bytes, the password after md5()", (unsigned long) strlen(admin_pass));
zend_bailout();
}