From 24ec4aff0e5b333f2d06e9477d877d24b5c8e38e Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Fri, 12 Oct 2012 20:01:46 +0000 Subject: [PATCH] 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 --- server/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.40.0