From: Ruben Kerkhof Date: Wed, 20 Feb 2019 10:25:50 +0000 (+0100) Subject: virt plugin: fix compiler warning X-Git-Tag: collectd-5.9.0~29^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3100%2Fhead;p=thirdparty%2Fcollectd.git 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 fd20c77eb..d44aeb763 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()";