X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpowerdns.c;h=7a2fbfd690068293cba86cc8fb6f06b9f29085bb;hb=7c9d772c992647fcba64a96800c146eb9f1647f8;hp=efeeb3130afa316d4738d00121a0ada72dc4474b;hpb=8e5e2e927f9cf051ef210473b1b48ff62d81f585;p=collectd.git diff --git a/src/powerdns.c b/src/powerdns.c index efeeb313..7a2fbfd6 100644 --- a/src/powerdns.c +++ b/src/powerdns.c @@ -304,10 +304,10 @@ static statname_lookup_t lookup_table[] = /* {{{ */ {"uptime", "uptime", NULL}}; /* }}} */ static int lookup_table_length = STATIC_ARRAY_SIZE(lookup_table); -static llist_t *list = NULL; +static llist_t *list; #define PDNS_LOCAL_SOCKPATH LOCALSTATEDIR "/run/" PACKAGE_NAME "-powerdns" -static char *local_sockpath = NULL; +static char *local_sockpath; /* TODO: Do this before 4.4: * - Update the collectd.conf(5) manpage. @@ -352,16 +352,13 @@ static void submit(const char *plugin_instance, /* {{{ */ } if (ds->ds_num != 1) { - ERROR("powerdns plugin: type `%s' has %zu data sources, " + ERROR("powerdns plugin: type `%s' has %" PRIsz " data sources, " "but I can only handle one.", type, ds->ds_num); return; } if (0 != parse_value(value_str, &value, ds->ds[0].type)) { - ERROR("powerdns plugin: Cannot convert `%s' " - "to a number.", - value_str); return; }