]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: Prevent weird type promotion objection in bgp tests
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 13 Jul 2018 11:26:32 +0000 (07:26 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 25 Jul 2018 18:50:29 +0000 (14:50 -0400)
The va_start function cannot take a object that can be type promoted
Looks like a new warning coming in from a new compiler.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
tests/bgpd/test_bgp_table.c

index 01ce7480d751ac48a09aac9813b7869b1d6aa91f..a0382827b97c331644c0d0195ccdb6b8ef320b51 100644 (file)
@@ -116,8 +116,8 @@ static void check_lookup_result(struct list *list, va_list arglist)
        assert(prefix_count == listcount(list));
 }
 
-static void do_test(struct bgp_table *table, const char *prefix, uint8_t maxlen,
-                   ...)
+static void do_test(struct bgp_table *table, const char *prefix,
+                   uint32_t maxlen, ...)
 {
        va_list arglist;
        struct list *list = list_new();