From: Jeff Trawick Date: Fri, 12 Oct 2012 20:01:46 +0000 (+0000) Subject: follow up to r1390564: we just need scope, not control structure X-Git-Tag: 2.5.0-alpha~6204 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24ec4aff0e5b333f2d06e9477d877d24b5c8e38e;p=apache follow up to r1390564: we just need scope, not control structure git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1397710 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util.c b/server/util.c index 1ae413e174..36f9a52b9b 100644 --- a/server/util.c +++ b/server/util.c @@ -2854,7 +2854,7 @@ AP_DECLARE(void) ap_get_loadavg(ap_loadavg_t *ld) ld->loadavg15 = -1.0; #if HAVE_GETLOADAVG - do { + { double la[3]; int num; @@ -2868,6 +2868,6 @@ AP_DECLARE(void) ap_get_loadavg(ap_loadavg_t *ld) if (num > 2) { ld->loadavg15 = (float)la[2]; } - } while(0); + } #endif }