summaryrefslogtreecommitdiff
path: root/bgpd/bgp_community.c
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2008-07-22 19:56:56 +0000
committerPaul Jakma <paul.jakma@sun.com>2008-07-22 19:56:56 +0000
commit851a1a5c146b346d8b8f58fe3924baa5c208f865 (patch)
tree38817ea92885b4274ca63ad2fc502da7a92c058d /bgpd/bgp_community.c
parent0df7c91f048f2116610d6bdfce3ab6cad1981802 (diff)
[bgpd] fix a couple of trivial compiler warnings
2008-07-22 Paul Jakma <paul.jakma@sun.com> * bgp_community.c: (community_str2com) assigns defaults to local vars * bgp_attr.c: (bgp_attr_parse) match format specifier to arg * bgp_table.{c,h}: (bgp_table_top) can take a * to a const, quelling warning in bgp_route.c
Diffstat (limited to 'bgpd/bgp_community.c')
-rw-r--r--bgpd/bgp_community.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_community.c b/bgpd/bgp_community.c
index d5e9821b..592b810d 100644
--- a/bgpd/bgp_community.c
+++ b/bgpd/bgp_community.c
@@ -581,8 +581,8 @@ community_str2com (const char *str)
{
struct community *com = NULL;
struct community *com_sort = NULL;
- u_int32_t val;
- enum community_token token;
+ u_int32_t val = 0;
+ enum community_token token = community_token_unknown;
do
{