From 8f4c082ea659466c7f335371972c65b4de546097 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 20 Feb 2019 11:25:50 +0100 Subject: [PATCH] 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. --- src/virt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()"; -- 2.11.0