diff options
author | Andrew Certain <certain@amazon.com> | 2012-12-04 22:36:41 +0100 |
---|---|---|
committer | Scott Feldman <sfeldma@cumulusnetworks.com> | 2013-01-07 18:59:53 +0100 |
commit | 703819a9314692f3a3b7f888887b0cebc15c18ae (patch) | |
tree | 5a109e346ba409f3707bd5f041f5ffb3b2b5f94c /ospfd/ospf_te.h | |
parent | lib: Changes to VTY string-parsing macros to remove warnings (diff) | |
download | frr-703819a9314692f3a3b7f888887b0cebc15c18ae.tar.xz frr-703819a9314692f3a3b7f888887b0cebc15c18ae.zip |
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>
Diffstat (limited to 'ospfd/ospf_te.h')
-rw-r--r-- | ospfd/ospf_te.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_te.h b/ospfd/ospf_te.h index e8511cdfb..863d8ba8f 100644 --- a/ospfd/ospf_te.h +++ b/ospfd/ospf_te.h @@ -41,7 +41,7 @@ * */ -#define LEGAL_TE_INSTANCE_RANGE(i) (0 <= (i) && (i) <= 0xffff) +#define MAX_LEGAL_TE_INSTANCE_NUM (0xffff) /* * 24 16 8 0 |