diff options
author | Nishant Chaprana <n.chaprana@samsung.com> | 2020-02-24 11:42:43 +0530 |
---|---|---|
committer | Nishant Chaprana <n.chaprana@samsung.com> | 2020-03-02 15:14:57 +0530 |
commit | 172fdf5748d335e247c5e763fbda06dce77c6470 (patch) | |
tree | e8638e6de830deb659d5cf3a0794b58576c3d99d | |
parent | 459f0b7b8c0ac181d3235e88eab7ef638642f496 (diff) | |
download | toybox-172fdf5748d335e247c5e763fbda06dce77c6470.tar.gz toybox-172fdf5748d335e247c5e763fbda06dce77c6470.tar.bz2 toybox-172fdf5748d335e247c5e763fbda06dce77c6470.zip |
Add FALLTHROUGH comment when intentionally skipping break in switch statement
Change-Id: Ic8eed69e5c1eba44866df6ce5311ecb85bb73153
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
-rw-r--r-- | toys/pending/dhcp.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/toys/pending/dhcp.c b/toys/pending/dhcp.c index f8226db..9dad00a 100644 --- a/toys/pending/dhcp.c +++ b/toys/pending/dhcp.c @@ -1212,14 +1212,16 @@ static void renew(void) break; case STATE_BOUND: mode_raw(); - case STATE_RENEWING: // FALLTHROUGH - case STATE_REBINDING: // FALLTHROUGH + // FALLTHROUGH + case STATE_RENEWING: // FALLTHROUGH + case STATE_REBINDING: // FALLTHROUGH state->status = STATE_RENEW_REQUESTED; break; case STATE_RENEW_REQUESTED: run_script(NULL, "deconfig"); - case STATE_REQUESTING: // FALLTHROUGH - case STATE_RELEASED: // FALLTHROUGH + // FALLTHROUGH + case STATE_REQUESTING: // FALLTHROUGH + case STATE_RELEASED: // FALLTHROUGH mode_raw(); state->status = STATE_INIT; break; |