From deaf0ffed380246cdce80ead544760386d0d9dde Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 12 Mar 2018 09:58:40 +0100 Subject: [PATCH] ntp: add missing breaks in switch statement Fortunately, they didn't change the behavior of the code. --- ntp_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ntp_core.c b/ntp_core.c index 5f60cab..44d4870 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -1123,6 +1123,7 @@ transmit_timeout(void *arg) /* With online burst switch to online before last packet */ if (inst->burst_total_samples_to_go <= 1) inst->opmode = MD_ONLINE; + break; case MD_BURST_WAS_OFFLINE: if (inst->burst_total_samples_to_go <= 0) take_offline(inst); @@ -1135,6 +1136,7 @@ transmit_timeout(void *arg) NCR_InitiateSampleBurst(inst, BURST_GOOD_SAMPLES, MIN(1 << (inst->local_poll - inst->minpoll), MAX_BURST_TOTAL_SAMPLES)); + break; default: break; }