Changeset 53f742e in git


Ignore:
Timestamp:
2007-05-23T01:04:03Z (12 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.2, 1.3
Children:
8e371ec
Parents:
7839a7c
Message:

merged 391 from trunk->1.2: fixed #96, wrong format string for sprintf

git-svn-id: svn://svn.lighttpd.net/xcache/branches/1.2@392 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mem.c

    rcd90797 r53f742e  
    315315    /* requires at least the header and 1 tail block */
    316316    if (size < MINSIZE) {
    317         fprintf(stderr, "xc_mem_init requires %d bytes at least\n", MINSIZE);
     317        fprintf(stderr, "xc_mem_init requires %lu bytes at least\n", (unsigned long) MINSIZE);
    318318        return NULL;
    319319    }
  • xc_malloc.c

    rcd90797 r53f742e  
    9090    /* requires at least the header and 1 tail block */
    9191    if (size < MINSIZE) {
    92         fprintf(stderr, "xc_mem_malloc_init requires %d bytes at least\n", MINSIZE);
     92        fprintf(stderr, "xc_mem_malloc_init requires %lu bytes at least\n", (unsigned long) MINSIZE);
    9393        return NULL;
    9494    }
  • xcache.c

    r7839a7c r53f742e  
    15611561    }
    15621562    if (strlen(admin_pass) != 32) {
    1563         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));
     1563        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));
    15641564        zend_bailout();
    15651565    }
Note: See TracChangeset for help on using the changeset viewer.