]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: Changed TE instance check to remove -Wtype-limits warning
authorAndrew Certain <certain@amazon.com>
Tue, 4 Dec 2012 21:36:41 +0000 (13:36 -0800)
committerScott Feldman <sfeldma@cumulusnetworks.com>
Mon, 7 Jan 2013 17:59:53 +0000 (09:59 -0800)
commit703819a9314692f3a3b7f888887b0cebc15c18ae
tree5a109e346ba409f3707bd5f041f5ffb3b2b5f94c
parent7798b6321cd0c6281b1a119ac894ff3749e88cc1
ospfd: Changed TE instance check to remove -Wtype-limits warning

Since LEGAL_TE_INSTANCE_RANGE() was being passed an unsigned int, a warning
was being thrown due to the compare against >= 0.  Since this macro was used
only in one place, I removed the macro for an explict compare against a
constant for the MAX.

Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
ospfd/ospf_te.c
ospfd/ospf_te.h