X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fhugepages.c;h=f23a6e2a3db6ff294ecbe27ef80a2235b7429cd5;hb=f7e2d82c4d016df72c55e85bb9c5bc9ba08d5f91;hp=f62df8304e7150877cb0eed790b9c866d808b1b8;hpb=edc55eb5b933d6b9f30c511d24172ee6a66cefcf;p=collectd.git diff --git a/src/hugepages.c b/src/hugepages.c index f62df830..f23a6e2a 100644 --- a/src/hugepages.c +++ b/src/hugepages.c @@ -82,10 +82,9 @@ static int hp_config(oconfig_item_t *ci) { static void submit_hp(const struct entry_info *info) { value_list_t vl = VALUE_LIST_INIT; - vl.values = &(value_t) { .gauge = NAN }; + vl.values = &(value_t){.gauge = NAN}; vl.values_len = 1; - sstrncpy(vl.host, hostname_g, sizeof(vl.host)); sstrncpy(vl.plugin, g_plugin_name, sizeof(vl.plugin)); if (info->node) { ssnprintf(vl.plugin_instance, sizeof(vl.plugin_instance), "%s-%zuKb",