]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
interface-linux: fix this statement may fall through [-Wimplicit-fallthrough=] with...
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Fri, 19 May 2017 15:32:27 +0000 (17:32 +0200)
committerVincent Bernat <vincent@bernat.im>
Fri, 19 May 2017 15:41:22 +0000 (17:41 +0200)
src/daemon/interfaces-linux.c

index 6e0db0e24f996827c949eb1efce045da8173dd92..92aad6a56f77deb706890664567dbb9fcb1700b7 100644 (file)
@@ -479,10 +479,12 @@ iflinux_macphy(struct lldpd_hardware *hardware)
                        // Same kind of approximation.
                        port->p_macphy.mau_type = (uset.base.port == PORT_FIBRE) ? \
                            LLDP_DOT3_MAU_40GBASELR4 : LLDP_DOT3_MAU_40GBASECR4;
+                       break;
                case SPEED_100000:
                        // Ditto
                        port->p_macphy.mau_type = (uset.base.port == PORT_FIBRE) ? \
                            LLDP_DOT3_MAU_100GBASELR4 : LLDP_DOT3_MAU_100GBASECR10;
+                       break;
                }
                if (uset.base.port == PORT_AUI) port->p_macphy.mau_type = LLDP_DOT3_MAU_AUI;
        }