]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
daemon: fix formatting with clang-format
authorVincent Bernat <vincent@bernat.ch>
Tue, 15 Oct 2024 19:10:45 +0000 (21:10 +0200)
committerVincent Bernat <vincent@bernat.ch>
Tue, 15 Oct 2024 19:10:45 +0000 (21:10 +0200)
src/daemon/interfaces-linux.c
src/daemon/netlink.c

index 1bf6003d5dfb12f20198e8ff1a75c77ba96916b5..fb0c877b50fb61c1ed371432fd7efb4cafbdabff 100644 (file)
@@ -390,7 +390,7 @@ iflinux_get_permanent_mac(struct lldpd *cfg, struct interfaces_device_list *inte
 #ifdef ENABLE_DOT3
 #  define ETHTOOL_LINK_MODE_MASK_MAX_KERNEL_NU32 (SCHAR_MAX)
 #  define ETHTOOL_DECLARE_LINK_MODE_MASK(name) \
-         uint32_t name[ETHTOOL_LINK_MODE_MASK_MAX_KERNEL_NU32]
+    uint32_t name[ETHTOOL_LINK_MODE_MASK_MAX_KERNEL_NU32]
 
 struct ethtool_link_usettings {
        struct ethtool_link_settings base;
index f8b39f9e69ab7fe76fe0715c6e9be68c281980d0..89da4414da1e7b6e23249b72160554b9dc5c118c 100644 (file)
@@ -352,7 +352,7 @@ netlink_parse_link(struct nlmsghdr *msg, struct interfaces_device *iff)
        iff->upper_idx = -1;
 
        for (attribute = IFLA_RTA(ifi); RTA_OK(attribute, len);
-           attribute = RTA_NEXT(attribute, len)) {
+            attribute = RTA_NEXT(attribute, len)) {
                switch (attribute->rta_type) {
                case IFLA_IFNAME:
                        /* Interface name */
@@ -470,7 +470,7 @@ netlink_parse_address(struct nlmsghdr *msg, struct interfaces_address *ifa)
        }
 
        for (attribute = IFA_RTA(ifi); RTA_OK(attribute, len);
-           attribute = RTA_NEXT(attribute, len)) {
+            attribute = RTA_NEXT(attribute, len)) {
                switch (attribute->rta_type) {
                case IFA_ADDRESS:
                        /* Address */
@@ -642,7 +642,7 @@ netlink_recv(struct lldpd *cfg, int s, struct interfaces_device_list *ifs,
                }
 
                for (msg = (struct nlmsghdr *)(void *)(iov.iov_base);
-                   NLMSG_OK(msg, len); msg = NLMSG_NEXT(msg, len)) {
+                    NLMSG_OK(msg, len); msg = NLMSG_NEXT(msg, len)) {
                        if (!(msg->nlmsg_flags & NLM_F_MULTI)) end = 1;
                        switch (msg->nlmsg_type) {
                        case NLMSG_DONE: