diff options
-rw-r--r-- | modules/proxy/mod_proxy_ftp.c | 2 | ||||
-rw-r--r-- | modules/proxy/mod_proxy_http.c | 2 | ||||
-rw-r--r-- | server/mpm_unix.c | 2 | ||||
-rw-r--r-- | server/protocol.c | 4 | ||||
-rw-r--r-- | support/htcacheclean.c | 8 | ||||
-rw-r--r-- | support/htdbm.c | 2 |
6 files changed, 10 insertions, 10 deletions
diff --git a/modules/proxy/mod_proxy_ftp.c b/modules/proxy/mod_proxy_ftp.c index 2dddb52d92..e9ddb6105a 100644 --- a/modules/proxy/mod_proxy_ftp.c +++ b/modules/proxy/mod_proxy_ftp.c @@ -1846,7 +1846,7 @@ static int proxy_ftp_handler(request_rec *r, proxy_worker *worker, if (use_port) { for (;;) { rv = apr_socket_accept(&data_sock, local_sock, r->pool); - if (rv == APR_EINTR) { + if (APR_STATUS_IS_EINTR(rv)) { continue; } else if (rv == APR_SUCCESS) { diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index 7271ca17fb..28026154b6 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -1371,7 +1371,7 @@ apr_status_t ap_proxygetline(apr_bucket_brigade *bb, char *s, int n, request_rec if (rv == APR_SUCCESS) { *writen = (int) len; - } else if (rv == APR_ENOSPC) { + } else if (APR_STATUS_IS_ENOSPC(rv)) { *writen = n; } else { *writen = -1; diff --git a/server/mpm_unix.c b/server/mpm_unix.c index eec5171958..830c7b1aea 100644 --- a/server/mpm_unix.c +++ b/server/mpm_unix.c @@ -643,7 +643,7 @@ int ap_signal_server(int *exit_status, apr_pool_t *pconf) rv = ap_read_pid(pconf, ap_pid_fname, &otherpid); if (rv != APR_SUCCESS) { - if (rv != APR_ENOENT) { + if (!APR_STATUS_IS_ENOENT(rv)) { ap_log_error(APLOG_MARK, APLOG_STARTUP, rv, NULL, "Error retrieving pid file %s", ap_pid_fname); ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, diff --git a/server/protocol.c b/server/protocol.c index cc256eb884..6245008307 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -610,7 +610,7 @@ static int read_request_line(request_rec *r, apr_bucket_brigade *bb) * buffer before finding the end-of-line. This is only going to * happen if it exceeds the configured limit for a request-line. */ - if (rv == APR_ENOSPC) { + if (APR_STATUS_IS_ENOSPC(rv)) { r->status = HTTP_REQUEST_URI_TOO_LARGE; r->proto_num = HTTP_VERSION(1,0); r->protocol = apr_pstrdup(r->pool, "HTTP/1.0"); @@ -618,7 +618,7 @@ static int read_request_line(request_rec *r, apr_bucket_brigade *bb) else if (APR_STATUS_IS_TIMEUP(rv)) { r->status = HTTP_REQUEST_TIME_OUT; } - else if (rv == APR_EINVAL) { + else if (APR_STATUS_IS_EINVAL(rv)) { r->status = HTTP_BAD_REQUEST; } return 0; diff --git a/support/htcacheclean.c b/support/htcacheclean.c index 567d0856d7..2e5a7fefaa 100644 --- a/support/htcacheclean.c +++ b/support/htcacheclean.c @@ -1083,7 +1083,7 @@ static apr_status_t remove_directory(apr_pool_t *pool, const char *dir) apr_finfo_t dirent; rv = apr_dir_open(&dirp, dir, pool); - if (rv == APR_ENOENT) { + if (APR_STATUS_IS_ENOENT(rv)) { return rv; } if (rv != APR_SUCCESS) { @@ -1193,7 +1193,7 @@ static apr_status_t find_directory(apr_pool_t *pool, const char *base, remove = apr_pstrcat(pool, base, "/", header, NULL); status = apr_file_remove(remove, pool); - if (status != APR_SUCCESS && status != APR_ENOENT) { + if (status != APR_SUCCESS && !APR_STATUS_IS_ENOENT(status)) { char errmsg[120]; apr_file_printf(errfile, "Could not remove file %s: %s" APR_EOL_STR, remove, apr_strerror(status, errmsg, sizeof errmsg)); @@ -1202,7 +1202,7 @@ static apr_status_t find_directory(apr_pool_t *pool, const char *base, remove = apr_pstrcat(pool, base, "/", data, NULL); status = apr_file_remove(remove, pool); - if (status != APR_SUCCESS && status != APR_ENOENT) { + if (status != APR_SUCCESS && !APR_STATUS_IS_ENOENT(status)) { char errmsg[120]; apr_file_printf(errfile, "Could not remove file %s: %s" APR_EOL_STR, remove, apr_strerror(status, errmsg, sizeof errmsg)); @@ -1210,7 +1210,7 @@ static apr_status_t find_directory(apr_pool_t *pool, const char *base, } status = remove_directory(pool, apr_pstrcat(pool, base, "/", vdir, NULL)); - if (status != APR_SUCCESS && status != APR_ENOENT) { + if (status != APR_SUCCESS && !APR_STATUS_IS_ENOENT(status)) { rv = status; } } diff --git a/support/htdbm.c b/support/htdbm.c index 46cf7250e2..f9a02bd49c 100644 --- a/support/htdbm.c +++ b/support/htdbm.c @@ -532,7 +532,7 @@ int main(int argc, const char * const argv[]) switch (cmd) { case HTDBM_VERIFY: if ((rv = htdbm_verify(h)) != APR_SUCCESS) { - if(rv == APR_ENOENT) { + if (APR_STATUS_IS_ENOENT(rv)) { fprintf(stderr, "The user '%s' could not be found in database\n", h->username); exit(ERR_BADUSER); } |