if (sapi_module.get_fd) {
return sapi_module.get_fd(fd TSRMLS_CC);
} else {
- return -1;
+ return FAILURE;
}
}
if (sapi_module.force_http_10) {
return sapi_module.force_http_10(TSRMLS_C);
} else {
- return -1;
+ return FAILURE;
}
}
if (sapi_module.get_target_uid) {
return sapi_module.get_target_uid(obj TSRMLS_CC);
} else {
- return -1;
+ return FAILURE;
}
}
if (sapi_module.get_target_gid) {
return sapi_module.get_target_gid(obj TSRMLS_CC);
} else {
- return -1;
+ return FAILURE;
}
}
if (fd >= 0) {
if (nfd) *nfd = fd;
- return 0;
+ return SUCCESS;
}
- return -1;
+ return FAILURE;
}
/* }}} */
r->proto_num = HTTP_VERSION(1,0);
- return 0;
+ return SUCCESS;
}
/* {{{ sapi_apache_get_target_uid
static int sapi_apache_get_target_uid(uid_t *obj TSRMLS_DC)
{
*obj = ap_user_id;
- return 0;
+ return SUCCESS;
}
/* {{{ sapi_apache_get_target_gid
static int sapi_apache_get_target_gid(gid_t *obj TSRMLS_DC)
{
*obj = ap_group_id;
- return 0;
+ return SUCCESS;
}
/* {{{ sapi_module_struct apache_sapi_module
static int sapi_thttpd_get_fd(int *nfd TSRMLS_DC)
{
if (nfd) *nfd = TG(hc)->conn_fd;
- return 0;
+ return SUCCESS;
}
static sapi_module_struct thttpd_sapi_module = {