]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: fix ecommunity_token initialiser
authorDavid Lamparter <equinox@opensourcerouting.org>
Sun, 19 Apr 2015 13:17:02 +0000 (15:17 +0200)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:33:29 +0000 (15:33 +0000)
This pulls up ecommunity_token_unknown to be the first enum value (at
0), and uses that as initialiser to get rid of the uninitialised use
warning.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit b1672ce858cc9c16fd7cc67b673aa241d9583a59)

bgpd/bgp_ecommunity.c

index 2a6bb23b2fe50b4264729104e123cbef10f8b269..f9f11866c8453b00c6c81a8d34940d5662b87ce8 100644 (file)
@@ -288,10 +288,10 @@ ecommunity_finish (void)
 /* Extended Communities token enum. */
 enum ecommunity_token
 {
+  ecommunity_token_unknown = 0,
   ecommunity_token_rt,
   ecommunity_token_soo,
   ecommunity_token_val,
-  ecommunity_token_unknown
 };
 
 /* Get next Extended Communities token from the string. */