summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorMark Stapp <mjs@cisco.com>2025-04-14 15:32:08 -0400
committerMark Stapp <mjs@cisco.com>2025-04-14 15:32:08 -0400
commit81b472bd79aceaa1911a45cc46229e4864bd62b5 (patch)
treee8bb473285549f06716fbf216545180794b354dc /bgpd
parentac56da1f50ee73582ce8afd60b91433ed3218e42 (diff)
lib,bgpd: clean up clang warnings
Clean up a couple of clang compiler warnings (this was clang 18) Signed-off-by: Mark Stapp <mjs@cisco.com>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_packet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c
index b18ebf411c..16e94d9fe2 100644
--- a/bgpd/bgp_packet.c
+++ b/bgpd/bgp_packet.c
@@ -3995,7 +3995,7 @@ void bgp_process_packet(struct event *thread)
uint32_t processed = 0, curr_connection_processed = 0;
bool more_work = false;
size_t count;
- uint32_t total_packets_to_process, total_processed = 0;
+ uint32_t total_packets_to_process;
frr_with_mutex (&bm->peer_connection_mtx)
connection = peer_connection_fifo_pop(&bm->connection_fifo);
@@ -4011,7 +4011,6 @@ void bgp_process_packet(struct event *thread)
fsm_update_result = 0;
while ((processed < total_packets_to_process) && connection) {
- total_processed++;
/* Guard against scheduled events that occur after peer deletion. */
if (connection->status == Deleted || connection->status == Clearing) {
frr_with_mutex (&bm->peer_connection_mtx)