diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2025-04-09 09:59:06 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-09 09:59:06 +0200 | 
| commit | 8418e57791eabc9feba637b69bd9ee35bed6860a (patch) | |
| tree | 48b9c05795135606782f9ec359c3f319f5d534dc /bgpd/bgp_attr.c | |
| parent | 1d426d99619b7818f4b63b52f83fadfe902b9854 (diff) | |
| parent | 27ba9956a15c17b7e8a6ba38aa8bbb4514fa90df (diff) | |
Merge pull request #17915 from mjstapp/compile_wshadow
Diffstat (limited to 'bgpd/bgp_attr.c')
| -rw-r--r-- | bgpd/bgp_attr.c | 18 | 
1 files changed, 9 insertions, 9 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index 9f8f1f6c69..b4adf47eb0 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -1444,11 +1444,11 @@ bgp_attr_malformed(struct bgp_attr_parser_args *args, uint8_t subcode,  	uint8_t *notify_datap = (length > 0 ? args->startp : NULL);  	if (bgp_debug_update(peer, NULL, NULL, 1)) { -		char attr_str[BUFSIZ] = {0}; +		char str[BUFSIZ] = { 0 }; -		bgp_dump_attr(attr, attr_str, sizeof(attr_str)); +		bgp_dump_attr(attr, str, sizeof(str)); -		zlog_debug("%s: attributes: %s", __func__, attr_str); +		zlog_debug("%s: attributes: %s", __func__, str);  	}  	/* Only relax error handling for eBGP peers */ @@ -2043,11 +2043,11 @@ static int bgp_attr_aggregator(struct bgp_attr_parser_args *args)  			 peer->host, aspath_print(attr->aspath));  		if (bgp_debug_update(peer, NULL, NULL, 1)) { -			char attr_str[BUFSIZ] = {0}; +			char str[BUFSIZ] = { 0 }; -			bgp_dump_attr(attr, attr_str, sizeof(attr_str)); +			bgp_dump_attr(attr, str, sizeof(str)); -			zlog_debug("%s: attributes: %s", __func__, attr_str); +			zlog_debug("%s: attributes: %s", __func__, str);  		}  	} else {  		SET_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_AGGREGATOR)); @@ -2094,11 +2094,11 @@ bgp_attr_as4_aggregator(struct bgp_attr_parser_args *args,  			 peer->host, aspath_print(attr->aspath));  		if (bgp_debug_update(peer, NULL, NULL, 1)) { -			char attr_str[BUFSIZ] = {0}; +			char str[BUFSIZ] = { 0 }; -			bgp_dump_attr(attr, attr_str, sizeof(attr_str)); +			bgp_dump_attr(attr, str, sizeof(str)); -			zlog_debug("%s: attributes: %s", __func__, attr_str); +			zlog_debug("%s: attributes: %s", __func__, str);  		}  	} else {  		SET_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_AS4_AGGREGATOR));  | 
