Changeset 1187 in svn for trunk


Ignore:
Timestamp:
2012-12-07T10:25:21+01:00 (2 years ago)
Author:
Xuefer
Message:

fix magic number: use 0 1 with zend_bool only. use FAILURE for int return type to avoid confusing. fix usage of 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mod_cacher/xc_cacher.c

    r1186 r1187  
    224224/* }}} */
    225225
    226 static inline int xc_entry_equal_unlocked(xc_entry_type_t type, const xc_entry_t *entry1, const xc_entry_t *entry2 TSRMLS_DC) /* {{{ */
     226static inline zend_bool xc_entry_equal_unlocked(xc_entry_type_t type, const xc_entry_t *entry1, const xc_entry_t *entry2 TSRMLS_DC) /* {{{ */
    227227{
    228228    /* this function isn't required but can be in unlocked */
     
    22042204
    22052205/* gdb helper functions, but N/A for coredump */
    2206 int xc_is_rw(const void *p) /* {{{ */
     2206zend_bool xc_is_rw(const void *p) /* {{{ */
    22072207{
    22082208    xc_shm_t *shm;
     
    22292229}
    22302230/* }}} */
    2231 int xc_is_ro(const void *p) /* {{{ */
     2231zend_bool xc_is_ro(const void *p) /* {{{ */
    22322232{
    22332233    xc_shm_t *shm;
     
    25602560    }
    25612561
    2562 static inline int xc_var_has_prefix(xc_entry_t *entry, zval *prefix TSRMLS_DC) /* {{{ */
     2562static inline zend_bool xc_var_has_prefix(xc_entry_t *entry, zval *prefix TSRMLS_DC) /* {{{ */
    25632563{
    25642564    zend_bool result = 0;
     
    25932593    zend_register_long_constant(ZEND_STRS("XC_TYPE_PHP"), XC_TYPE_PHP, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC);
    25942594    zend_register_long_constant(ZEND_STRS("XC_TYPE_VAR"), XC_TYPE_VAR, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC);
    2595     return 0;
     2595    return SUCCESS;
    25962596}
    25972597/* }}} */
     
    27372737        shm = NULL;
    27382738    }
    2739     return 0;
     2739    return FAILURE;
    27402740}
    27412741/* }}} */
     
    28092809
    28102810/* user functions */
    2811 static int xcache_admin_auth_check(TSRMLS_D) /* {{{ */
     2811static zend_bool xcache_admin_auth_check(TSRMLS_D) /* {{{ */
    28122812{
    28132813    zval **server = NULL;
Note: See TracChangeset for help on using the changeset viewer.