]> git.proxmox.com Git - mirror_frr.git/commit - lib/zebra.h
lib: fix MIN/MAX macros to not double-eval
authorDavid Lamparter <equinox@opensourcerouting.org>
Sat, 12 Mar 2016 18:58:09 +0000 (19:58 +0100)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 17 Mar 2016 23:52:10 +0000 (19:52 -0400)
commit8a0bebfc3a0edc5e32b2aa3785d3d8367504a393
tree9dc7330fb8bdbe2a6433cee64a33dd59bc2b5c43
parenta7928d3ac43b9bd892280f8b12f73d269b8266a8
lib: fix MIN/MAX macros to not double-eval

cf. https://gcc.gnu.org/onlinedocs/gcc/Typeof.html
(Works on all compilers on Quagga's compiler support list in
doc/overview.texi)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Tested-by: NetDEF CI System <cisystem@netdef.org>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/zebra.h