From 3220abceeddcf04c0689eeb1588c1fe434d10e3d Mon Sep 17 00:00:00 2001 From: Fabrice Bellet Date: Sun, 19 Apr 2020 17:16:05 +0200 Subject: [PATCH] conncheck: add a couple of switch case fallthroughs --- agent/conncheck.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/agent/conncheck.c b/agent/conncheck.c index 7770376..5842c45 100644 --- a/agent/conncheck.c +++ b/agent/conncheck.c @@ -1421,11 +1421,8 @@ static gboolean priv_conn_keepalive_retransmissions_tick_agent_locked ( nice_debug ("Agent %p : Retransmitting keepalive conncheck", agent); - agent_timeout_add_with_context (agent, - &pair->keepalive.tick_source, - "Pair keepalive", stun_timer_remainder (&pair->keepalive.timer), - priv_conn_keepalive_retransmissions_tick_agent_locked, pair); - break; + + G_GNUC_FALLTHROUGH; case STUN_USAGE_TIMER_RETURN_SUCCESS: agent_timeout_add_with_context (agent, &pair->keepalive.tick_source, @@ -1794,10 +1791,7 @@ static gboolean priv_turn_allocate_refresh_retransmissions_tick_agent_locked ( agent_socket_send (cand->nicesock, &cand->server, stun_message_length (&cand->stun_message), (gchar *)cand->stun_buffer); - agent_timeout_add_with_context (agent, &cand->tick_source, - "Candidate TURN refresh", stun_timer_remainder (&cand->timer), - priv_turn_allocate_refresh_retransmissions_tick_agent_locked, cand); - break; + G_GNUC_FALLTHROUGH; case STUN_USAGE_TIMER_RETURN_SUCCESS: agent_timeout_add_with_context (agent, &cand->tick_source, "Candidate TURN refresh", stun_timer_remainder (&cand->timer), -- 2.7.4