summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorTakashi Sato <takashi@apache.org>2009-12-29 13:56:44 +0100
committerTakashi Sato <takashi@apache.org>2009-12-29 13:56:44 +0100
commitb0f0d5d80b75f0279f3a7dcf7ad9a5eeb00757dc (patch)
tree234ca3c7bea0ce9cd45174a287901dea1bcd8bdb /support
parentFix string constness to get rid of gcc compiler warnings by -Wwrite-strings. (diff)
downloadapache2-b0f0d5d80b75f0279f3a7dcf7ad9a5eeb00757dc.tar.xz
apache2-b0f0d5d80b75f0279f3a7dcf7ad9a5eeb00757dc.zip
Add parentheses to min max macro functions to avoid future bugs.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@894374 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r--support/ab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/ab.c b/support/ab.c
index 18a55029d2..734176596f 100644
--- a/support/ab.c
+++ b/support/ab.c
@@ -270,8 +270,8 @@ struct data {
apr_interval_time_t time; /* time for connection */
};
-#define ap_min(a,b) ((a)<(b))?(a):(b)
-#define ap_max(a,b) ((a)>(b))?(a):(b)
+#define ap_min(a,b) (((a)<(b))?(a):(b))
+#define ap_max(a,b) (((a)>(b))?(a):(b))
#define ap_round_ms(a) ((apr_time_t)((a) + 500)/1000)
#define ap_double_ms(a) ((double)(a)/1000.0)
#define MAX_CONCURRENCY 20000