summaryrefslogtreecommitdiffstats
path: root/zebra/if_netlink.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-04-18 22:03:35 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-17 02:27:08 +0200
commit2fff50ec018fb6ea64329399b103be7f4359f021 (patch)
tree0169145e9a0102fc1cecd63caef1e5a22e906c10 /zebra/if_netlink.c
parentdoc: add vrrpd(8) (diff)
downloadfrr-2fff50ec018fb6ea64329399b103be7f4359f021.tar.xz
frr-2fff50ec018fb6ea64329399b103be7f4359f021.zip
vrrpd, lib: style fixes
Fixup: * Blank lines after declarations * Trailing whitespace * Braces and parentheses Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/if_netlink.c')
-rw-r--r--zebra/if_netlink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c
index e7d988cd9..df8d4bfe1 100644
--- a/zebra/if_netlink.c
+++ b/zebra/if_netlink.c
@@ -1406,7 +1406,7 @@ int netlink_protodown(struct interface *ifp, bool down)
char buf[NL_PKT_BUF_SIZE];
} req;
- memset(&req, 0, sizeof req);
+ memset(&req, 0, sizeof(req));
req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg));
req.n.nlmsg_flags = NLM_F_REQUEST;
@@ -1415,8 +1415,8 @@ int netlink_protodown(struct interface *ifp, bool down)
req.ifa.ifi_index = ifp->ifindex;
- addattr_l(&req.n, sizeof req, IFLA_PROTO_DOWN, &down, 4);
- addattr_l(&req.n, sizeof req, IFLA_LINK, &ifp->ifindex, 4);
+ addattr_l(&req.n, sizeof(req), IFLA_PROTO_DOWN, &down, 4);
+ addattr_l(&req.n, sizeof(req), IFLA_LINK, &ifp->ifindex, 4);
return netlink_talk(netlink_talk_filter, &req.n, &zns->netlink_cmd, zns,
0);