fixed #96, wrong format string for sprintf
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@391 c26eb9a1-5813-0410-bd6c-c2e55f420ca73.0
parent
69008a5d9b
commit
4aa7c33b6b
2
mem.c
2
mem.c
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
2
xcache.c
2
xcache.c
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue