summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 99711bf)
raw | patch | inline | side by side (parent: 99711bf)
author | Francesco Romani <fromani@redhat.com> | |
Wed, 15 Feb 2017 14:27:34 +0000 (15:27 +0100) | ||
committer | Francesco Romani <fromani@redhat.com> | |
Wed, 15 Feb 2017 14:27:34 +0000 (15:27 +0100) |
and use a matching type for local one.
src/virt.c | patch | blob | history |
diff --git a/src/virt.c b/src/virt.c
index 68a8e6b98d91970f9d405e6efee3c14fe285c11e..51682993d476ac1a04c678ffa1a9f2a59270d459 100644 (file)
--- a/src/virt.c
+++ b/src/virt.c
}
static unsigned int parse_ex_stats_flags(char **exstats, int numexstats) {
- int extra_stats = ex_stats_none;
+ unsigned int ex_stats_flags = ex_stats_none;
for (int i = 0; i < numexstats; i++) {
for (int j = 0; ex_stats_table[j].name != NULL; j++) {
if (strcasecmp(exstats[i], ex_stats_table[j].name) == 0) {
DEBUG(PLUGIN_NAME " plugin: enabling extra stats for '%s'",
ex_stats_table[j].name);
- extra_stats |= ex_stats_table[j].flag;
+ ex_stats_flags |= ex_stats_table[j].flag;
break;
}
}
}
- return extra_stats;
+ return ex_stats_flags;
}
static int lv_config(const char *key, const char *value) {