mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 20:34:33 +00:00
bgpd: Fix more clang compiler warnings
Remove some dead code and fix initialization of the sockunion. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
This commit is contained in:
parent
5007999a30
commit
b068916848
@ -74,7 +74,6 @@ static const struct message attr_flag_str[] =
|
|||||||
/* bgp_attr_flags_diagnose() relies on this bit being last in this list */
|
/* bgp_attr_flags_diagnose() relies on this bit being last in this list */
|
||||||
{ BGP_ATTR_FLAG_EXTLEN, "Extended Length" },
|
{ BGP_ATTR_FLAG_EXTLEN, "Extended Length" },
|
||||||
};
|
};
|
||||||
static const size_t attr_flag_str_max = array_size(attr_flag_str);
|
|
||||||
|
|
||||||
static struct hash *cluster_hash;
|
static struct hash *cluster_hash;
|
||||||
|
|
||||||
|
@ -118,8 +118,8 @@ route_match_peer (void *rule, struct prefix *prefix, route_map_object_t type,
|
|||||||
void *object)
|
void *object)
|
||||||
{
|
{
|
||||||
union sockunion *su;
|
union sockunion *su;
|
||||||
union sockunion su_def = { .sa.sa_family = AF_INET,
|
union sockunion su_def = { .sin.sin_family = AF_INET,
|
||||||
.sin.sin_addr.s_addr = INADDR_ANY };
|
.sin.sin_addr.s_addr = INADDR_ANY };
|
||||||
struct peer_group *group;
|
struct peer_group *group;
|
||||||
struct peer *peer;
|
struct peer *peer;
|
||||||
struct listnode *node, *nnode;
|
struct listnode *node, *nnode;
|
||||||
|
Loading…
Reference in New Issue
Block a user