]> granicus.if.org Git - apache/commitdiff
fixing compile errors due to if assignment warnings
authorStefan Eissing <icing@apache.org>
Mon, 2 Nov 2015 09:14:50 +0000 (09:14 +0000)
committerStefan Eissing <icing@apache.org>
Mon, 2 Nov 2015 09:14:50 +0000 (09:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1711919 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/event/event.c
server/mpm/prefork/prefork.c
server/mpm/worker/worker.c

index b62f51f7830786d3e1b0edf1d366d4237260fba1..e317723eb7336038d0671349a09651c4c661793f 100644 (file)
@@ -3329,7 +3329,7 @@ static int event_open_logs(apr_pool_t * p, apr_pool_t * plog,
 
     all_buckets = apr_pcalloc(pconf, num_buckets * sizeof(*all_buckets));
     for (i = 0; i < num_buckets; i++) {
-        if (rv = ap_mpm_podx_open(pconf, &all_buckets[i].pod)) {
+        if ((rv = ap_mpm_podx_open(pconf, &all_buckets[i].pod))) {
             ap_log_error(APLOG_MARK, APLOG_CRIT | level_flags, rv,
                          (startup ? NULL : s),
                          "could not open pipe-of-death");
index ab925546151cf972a165836970127a0c23f5a402..1b778869d8a2b224872dc455e155cc8d09ff6441 100644 (file)
@@ -1328,7 +1328,7 @@ static int prefork_open_logs(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp,
     all_buckets = apr_pcalloc(pconf, num_buckets *
                                      sizeof(prefork_child_bucket));
     for (i = 0; i < num_buckets; i++) {
-        if (rv = ap_mpm_pod_open(pconf, &all_buckets[i].pod)) {
+        if ((rv = ap_mpm_pod_open(pconf, &all_buckets[i].pod))) {
             ap_log_error(APLOG_MARK, APLOG_CRIT | level_flags, rv,
                          (startup ? NULL : s),
                          "could not open pipe-of-death");
index 00fdd78283b0b00b48aadf6ffdc8978dce92db30..85a380ede90a181b82b40bc9cd25a66317ec8483 100644 (file)
@@ -2053,7 +2053,7 @@ static int worker_open_logs(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp,
 
     all_buckets = apr_pcalloc(pconf, num_buckets * sizeof(*all_buckets));
     for (i = 0; i < num_buckets; i++) {
-        if (rv = ap_mpm_podx_open(pconf, &all_buckets[i].pod)) {
+        if ((rv = ap_mpm_podx_open(pconf, &all_buckets[i].pod))) {
             ap_log_error(APLOG_MARK, APLOG_CRIT | level_flags, rv,
                          (startup ? NULL : s),
                          "could not open pipe-of-death");