summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
Diffstat (limited to 'sapi')
-rw-r--r--sapi/apache/mod_php4.c10
-rw-r--r--sapi/thttpd/thttpd.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c
index 0803edef4a..9f3d7444dd 100644
--- a/sapi/apache/mod_php4.c
+++ b/sapi/apache/mod_php4.c
@@ -355,9 +355,9 @@ static int sapi_apache_get_fd(int *nfd TSRMLS_DC)
if (fd >= 0) {
if (nfd) *nfd = fd;
- return 0;
+ return SUCCESS;
}
- return -1;
+ return FAILURE;
}
/* }}} */
@@ -369,7 +369,7 @@ static int sapi_apache_force_http_10(TSRMLS_D)
r->proto_num = HTTP_VERSION(1,0);
- return 0;
+ return SUCCESS;
}
/* {{{ sapi_apache_get_target_uid
@@ -377,7 +377,7 @@ static int sapi_apache_force_http_10(TSRMLS_D)
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
@@ -385,7 +385,7 @@ static int sapi_apache_get_target_uid(uid_t *obj TSRMLS_DC)
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
diff --git a/sapi/thttpd/thttpd.c b/sapi/thttpd/thttpd.c
index ae46df3509..30d1cea798 100644
--- a/sapi/thttpd/thttpd.c
+++ b/sapi/thttpd/thttpd.c
@@ -349,7 +349,7 @@ static int php_thttpd_startup(sapi_module_struct *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 = {