diff options
author | truckman <truckman@FreeBSD.org> | 2016-05-26 21:44:52 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2016-05-26 21:44:52 +0000 |
commit | 4c4391fff9f948ab892c9e98e562e5efce65d264 (patch) | |
tree | cd1f27156cd36c04d31bd9023a0e519253ab48d2 /sys/netpfil | |
parent | a01326746db7c8311ce66119822226f88bc383d0 (diff) | |
download | FreeBSD-src-4c4391fff9f948ab892c9e98e562e5efce65d264.zip FreeBSD-src-4c4391fff9f948ab892c9e98e562e5efce65d264.tar.gz |
Modify BOUND_VAR() macro to wrap all of its arguments in () and tweak
its expression to work on powerpc and sparc64 (gcc compatibility).
Correct a typo in a nearby comment.
MFC after: 2 weeks (with r300779)
Diffstat (limited to 'sys/netpfil')
-rw-r--r-- | sys/netpfil/ipfw/dn_aqm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netpfil/ipfw/dn_aqm.h b/sys/netpfil/ipfw/dn_aqm.h index df1d187..da47f00 100644 --- a/sys/netpfil/ipfw/dn_aqm.h +++ b/sys/netpfil/ipfw/dn_aqm.h @@ -52,9 +52,9 @@ typedef int32_t aqm_stime_t; #define DN_AQM_MTAG_TS 55345 /* Macro for variable bounding */ -#define BOUND_VAR(x,l,h) (x < l? l : x > h? h : x) +#define BOUND_VAR(x,l,h) ((x) > (h)? (h) : ((x) > (l)? (x) : (l))) -/* sysctl variable to count number of droped packets */ +/* sysctl variable to count number of dropped packets */ extern unsigned long io_pkt_drop; /* |