From 70c060120f7c19796f147acb0de982f7a2cccd2c Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 24 Jul 2020 13:49:56 +1000 Subject: [PATCH] Add fallthrough and braces --- lib/isc/unix/socket.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c index 3972c4dd86..e6952bc9af 100644 --- a/lib/isc/unix/socket.c +++ b/lib/isc/unix/socket.c @@ -4245,9 +4245,10 @@ isc_socket_cleanunix(const isc_sockaddr_t *sockaddr, bool active) { if (stat(sockaddr->type.sunix.sun_path, &sb) < 0) { switch (errno) { case ENOENT: - if (active) /* We exited cleanly last time */ + if (active) { /* We exited cleanly last time */ break; - /* intentional falltrough */ + } + /* FALLTHROUGH */ default: strerror_r(errno, strbuf, sizeof(strbuf)); isc_log_write(isc_lctx, ISC_LOGCATEGORY_GENERAL,