diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-10-11 17:44:39 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-10-18 14:36:25 +0200 |
commit | db7d7ba4e12611d56d0d5494b27c8570e9f80741 (patch) | |
tree | 2304cbbf9c58e4d3f829eef3640df9fdc3b431ba | |
parent | zebra: Fix route deletion on *BSD (diff) | |
download | frr-db7d7ba4e12611d56d0d5494b27c8570e9f80741.tar.xz frr-db7d7ba4e12611d56d0d5494b27c8570e9f80741.zip |
tests: fix MIN()-related sign warnings
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rw-r--r-- | tests/test-checksum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-checksum.c b/tests/test-checksum.c index b6741f305..53ab260e2 100644 --- a/tests/test-checksum.c +++ b/tests/test-checksum.c @@ -44,7 +44,7 @@ typedef size_t testsz_t; typedef uint16_t testoff_t; /* Fletcher Checksum -- Refer to RFC1008. */ -#define MODX 4102 +#define MODX 4102U /* The final reduction phase. * This one should be the original ospfd version @@ -391,7 +391,7 @@ verify (u_char * buffer, testsz_t len) while (len) { - partial_len = MIN(len, 5803); + partial_len = MIN(len, 5803U); for (i = 0; i < partial_len; i++) { |