X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnetlink.c;h=c5f66f835cd85d130a9f7c25f2e084453c17a34a;hb=1ebf2f31bd2e080e6f42de640f0a3899a61501c0;hp=aa9760f9328b78eb87e14f70501bc1622a57f12d;hpb=add25ce6f3129cb7138e96e5f55d11de1e5cf6de;p=collectd.git diff --git a/src/netlink.c b/src/netlink.c index aa9760f9..c5f66f83 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -30,7 +30,6 @@ #include "common.h" #include -#include #include #include @@ -110,7 +109,7 @@ static int add_ignorelist (const char *dev, const char *type, { ir_ignorelist_t *entry; - entry = (ir_ignorelist_t *) malloc (sizeof (ir_ignorelist_t)); + entry = malloc (sizeof (*entry)); if (entry == NULL) return (-1); @@ -471,7 +470,7 @@ static int qos_filter_cb (const struct nlmsghdr *nlh, void *args) const char *kind = NULL; /* char *type_instance; */ - char *tc_type; + const char *tc_type; char tc_inst[DATA_MAX_NAME_LEN]; _Bool stats_submitted = 0;