X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fnetlink.c;h=e1f378d9408a741a6e75c85efe62ee5a80426028;hb=9e6395fc062c3cda48b612e90c0dca64a6c5236c;hp=5e670d4ea7c440852ddbd7df619dcf9c9c70fca0;hpb=a321fd49b6e74ffddd67e9c5b44b4d6ce3a8bbe8;p=collectd.git diff --git a/src/netlink.c b/src/netlink.c index 5e670d4e..e1f378d9 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -30,7 +30,6 @@ #include "common.h" #include -#include #include #include @@ -310,10 +309,10 @@ static void check_ignorelist_and_submit (const char *dev, } /* void check_ignorelist_and_submit */ -#define COPY_RTNL_LINK_VALUE (dst_stats, src_stats, value_name) \ +#define COPY_RTNL_LINK_VALUE(dst_stats, src_stats, value_name) \ (dst_stats)->value_name = (src_stats)->value_name -#define COPY_RTNL_LINK_STATS (dst_stats, src_stats) \ +#define COPY_RTNL_LINK_STATS(dst_stats, src_stats) \ COPY_RTNL_LINK_VALUE (dst_stats, src_stats, rx_packets); \ COPY_RTNL_LINK_VALUE (dst_stats, src_stats, tx_packets); \ COPY_RTNL_LINK_VALUE (dst_stats, src_stats, rx_bytes); \ @@ -780,7 +779,7 @@ static int ir_read (void) continue; } - DEBUG ("netlink plugin: ir_read: querying %s from %s (%lu).", + DEBUG ("netlink plugin: ir_read: querying %s from %s (%zu).", type_name[type_index], iflist[ifindex], ifindex); nlh = mnl_nlmsg_put_header (buf);