From: Francesco Romani Date: Wed, 15 Feb 2017 13:21:20 +0000 (+0100) Subject: virt plugin: fix prototype X-Git-Tag: collectd-5.8.0~234^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=99711bf92a44ad07f82b29792df3e4e2f9450ac6;p=collectd.git virt plugin: fix prototype Previously it failed to compile, even though somehow gcc 6.3.1 liked it. --- diff --git a/src/virt.c b/src/virt.c index f2dccec4..68a8e6b9 100644 --- a/src/virt.c +++ b/src/virt.c @@ -484,7 +484,7 @@ static void disk_submit(struct lv_block_info *binfo, virDomainPtr dom, } } -static unsigned int parse_ex_stats_flags(const char *exstats, int numexstats) { +static unsigned int parse_ex_stats_flags(char **exstats, int numexstats) { int extra_stats = ex_stats_none; for (int i = 0; i < numexstats; i++) { for (int j = 0; ex_stats_table[j].name != NULL; j++) {