]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: add missing breaks in switch statement
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 12 Mar 2018 08:58:40 +0000 (09:58 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 12 Mar 2018 11:42:05 +0000 (12:42 +0100)
Fortunately, they didn't change the behavior of the code.

ntp_core.c

index 5f60cabfdbe826ad92f9a2a709ff814d9e5dede7..44d4870556e7e8b6e0a1b5c0c80a4e08adae8c5f 100644 (file)
@@ -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;
   }