From 2e9bbb6848df2348d47a8ea8b39b25edfe36e484 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 15 Oct 2024 21:10:45 +0200 Subject: [PATCH] daemon: fix formatting with clang-format --- src/daemon/interfaces-linux.c | 2 +- src/daemon/netlink.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/daemon/interfaces-linux.c b/src/daemon/interfaces-linux.c index 1bf6003d..fb0c877b 100644 --- a/src/daemon/interfaces-linux.c +++ b/src/daemon/interfaces-linux.c @@ -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; diff --git a/src/daemon/netlink.c b/src/daemon/netlink.c index f8b39f9e..89da4414 100644 --- a/src/daemon/netlink.c +++ b/src/daemon/netlink.c @@ -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: -- 2.39.5