summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2025-04-14 21:10:49 -0500
committerGitHub <noreply@github.com>2025-04-14 21:10:49 -0500
commit3da1473093f2966890ce261e9dd0f7720d437328 (patch)
tree02ffd6915a841b509266acc6d5505b72366057b8
parent417c82aadd9cfe5a52b0591fab7f443a4ff84fa2 (diff)
parent81b472bd79aceaa1911a45cc46229e4864bd62b5 (diff)
Merge pull request #18655 from mjstapp/fix_clang_lib_bgp
lib,bgpd: clean up clang warnings
-rw-r--r--bgpd/bgp_packet.c3
-rw-r--r--lib/resolver.c2
2 files changed, 2 insertions, 3 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)
diff --git a/lib/resolver.c b/lib/resolver.c
index 901ccf8132..62b98091ec 100644
--- a/lib/resolver.c
+++ b/lib/resolver.c
@@ -282,7 +282,7 @@ static void resolver_cb_literal(struct event *t)
callback = query->callback;
query->callback = NULL;
- callback(query, ARES_SUCCESS, 1, &query->literal_addr);
+ callback(query, NULL, 1, &query->literal_addr);
}
void resolver_resolve(struct resolver_query *query, int af, vrf_id_t vrf_id,