Changeset 4aa7c33 in git


Ignore:
Timestamp:
2007-05-23T01:00:26Z (12 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
114c15e
Parents:
69008a5
Message:

fixed #96, wrong format string for sprintf

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@391 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mem.c

    r5dd9e24 r4aa7c33  
    295295    /* requires at least the header and 1 tail block */
    296296    if (size < MINSIZE) {
    297         fprintf(stderr, "xc_mem_init requires %d bytes at least\n", MINSIZE);
     297        fprintf(stderr, "xc_mem_init requires %lu bytes at least\n", (unsigned long) MINSIZE);
    298298        return NULL;
    299299    }
  • xc_malloc.c

    r69008a5 r4aa7c33  
    121121    /* requires at least the header and 1 tail block */
    122122    if (size < MINSIZE) {
    123         fprintf(stderr, "xc_mem_malloc_init requires %d bytes at least\n", MINSIZE);
     123        fprintf(stderr, "xc_mem_malloc_init requires %lu bytes at least\n", (unsigned long) MINSIZE);
    124124        return NULL;
    125125    }
  • xcache.c

    rcc3b18e r4aa7c33  
    17421742    }
    17431743    if (strlen(admin_pass) != 32) {
    1744         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));
     1744        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));
    17451745        zend_bailout();
    17461746    }
Note: See TracChangeset for help on using the changeset viewer.