From f350e48a212ca8f992b468d1cb87cd77fda68e37 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 28 Nov 2021 17:52:31 +0100 Subject: ipcpd: Fix fallthrough warnings Some cases were not guarded by explicit fallthrough where needed. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/ipcp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ipcpd') diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c index e3e4221a..ff160652 100644 --- a/src/ipcpd/ipcp.c +++ b/src/ipcpd/ipcp.c @@ -877,8 +877,11 @@ void ipcp_shutdown() #endif switch(info.si_signo) { case SIGINT: + /* FALLTHRU */ case SIGTERM: + /* FALLTHRU */ case SIGHUP: + /* FALLTHRU */ case SIGQUIT: if (info.si_pid == ipcpi.irmd_pid) { if (ipcp_get_state() == IPCP_INIT) @@ -890,6 +893,7 @@ void ipcp_shutdown() break; case SIGPIPE: log_dbg("Ignored SIGPIPE."); + continue; default: continue; } -- cgit v1.2.3