X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fpowerdns.c;h=eb3ec537c35019124fe1db7833df138936a4a513;hp=efeeb3130afa316d4738d00121a0ada72dc4474b;hb=d486225f89ea52d8ed2b4242eba2ad94c409f837;hpb=ac6580fd886d45a66506fe710a6fea0f48368dcb diff --git a/src/powerdns.c b/src/powerdns.c index efeeb313..eb3ec537 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,7 +352,7 @@ 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;