From: Ruben Kerkhof Date: Wed, 20 Feb 2019 10:25:50 +0000 (+0100) Subject: virt plugin: fix compiler warning X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=8f4c082ea659466c7f335371972c65b4de546097;hp=587c9126c2cb5031ed1266651d26f6d704f509d5 virt plugin: fix compiler warning src/virt.c:725:7: warning: no previous prototype for function 'metadata_get_hostname' [-Wmissing-prototypes] char *metadata_get_hostname(virDomainPtr dom) { ^ 1 warning generated. --- diff --git a/src/virt.c b/src/virt.c index fd20c77e..d44aeb76 100644 --- a/src/virt.c +++ b/src/virt.c @@ -722,7 +722,7 @@ static int get_block_info(struct lv_block_info *binfo, ERROR(PLUGIN_NAME " plugin: %s failed: %s", (s), err->message); \ } while (0) -char *metadata_get_hostname(virDomainPtr dom) { +static char *metadata_get_hostname(virDomainPtr dom) { const char *xpath_str = NULL; if (hm_xpath == NULL) xpath_str = "/instance/name/text()";