summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2021-11-28 17:52:31 +0100
committerSander Vrijders <sander@ouroboros.rocks>2021-12-06 17:52:00 +0100
commitf350e48a212ca8f992b468d1cb87cd77fda68e37 (patch)
tree218d6d3dcaabf25b19e46ed392c4a44eb96ef9b3 /src
parent4e8b6f726dab50865d7daded2299d0187184901f (diff)
downloadouroboros-f350e48a212ca8f992b468d1cb87cd77fda68e37.tar.gz
ouroboros-f350e48a212ca8f992b468d1cb87cd77fda68e37.zip
ipcpd: Fix fallthrough warnings
Some cases were not guarded by explicit fallthrough where needed. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src')
-rw-r--r--src/ipcpd/ipcp.c4
1 files changed, 4 insertions, 0 deletions
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;
}