From: Vincent Bernat Date: Sun, 8 Nov 2020 15:26:54 +0000 (+0100) Subject: daemon: remove implicit fall-through X-Git-Tag: 1.0.8~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=744e246e0007482e8eca34aa938d07bf110e04db;p=thirdparty%2Flldpd.git daemon: remove implicit fall-through --- diff --git a/src/daemon/interfaces.c b/src/daemon/interfaces.c index df7d55ba..c873630d 100644 --- a/src/daemon/interfaces.c +++ b/src/daemon/interfaces.c @@ -772,7 +772,8 @@ interfaces_send_helper(struct lldpd *cfg, break; } /* Fallback to fixed value */ - /* FALL THROUGH */ + memcpy(src_mac, arbitrary, ETHER_ADDR_LEN); + break; case LLDP_BOND_SLAVE_SRC_MAC_TYPE_FIXED: memcpy(src_mac, arbitrary, ETHER_ADDR_LEN); break; diff --git a/src/daemon/privsep_io.c b/src/daemon/privsep_io.c index fbfad740..5b46531c 100644 --- a/src/daemon/privsep_io.c +++ b/src/daemon/privsep_io.c @@ -46,9 +46,9 @@ may_read(enum priv_context ctx, void *buf, size_t n) case -1: if (errno == EINTR || errno == EAGAIN) continue; - /* FALL THROUGH */ + return 1; case 0: - return (1); + return 1; default: pos += res; }