From: Miroslav Lichvar Date: Mon, 12 Mar 2018 08:58:40 +0000 (+0100) Subject: ntp: add missing breaks in switch statement X-Git-Tag: 3.3-pre1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deaf0ffed380246cdce80ead544760386d0d9dde;p=thirdparty%2Fchrony.git ntp: add missing breaks in switch statement Fortunately, they didn't change the behavior of the code. --- diff --git a/ntp_core.c b/ntp_core.c index 5f60cabf..44d48705 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; }