Changeset 391 in svn for trunk


Ignore:
Timestamp:
2007-05-23T03:00:26+02:00 (8 years ago)
Author:
Xuefer
Message:

fixed #96, wrong format string for sprintf

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/mem.c

    r381 r391  
    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    }
  • trunk/xc_malloc.c

    r390 r391  
    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    }
  • trunk/xcache.c

    r388 r391  
    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.