From: Ruben Kerkhof Date: Sun, 5 Mar 2017 16:42:28 +0000 (+0100) Subject: ovs_stats plugin: fix build warning X-Git-Tag: collectd-5.8.0~219 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=71d2e21ff496bc9ce2d0e6a59853442f71a57c9c;p=collectd.git ovs_stats plugin: fix build warning src/ovs_stats.c:158:8: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] static const iface_counter ovs_stats_counter_name_to_type(const char *counter) { ^~~~~~ --- diff --git a/src/ovs_stats.c b/src/ovs_stats.c index 77dc1f2e..7a8db93b 100644 --- a/src/ovs_stats.c +++ b/src/ovs_stats.c @@ -155,7 +155,7 @@ static ovs_stats_config_t ovs_stats_cfg = { .ovs_db_serv = "6640", /* use default OVS DB service */ }; -static const iface_counter ovs_stats_counter_name_to_type(const char *counter) { +static iface_counter ovs_stats_counter_name_to_type(const char *counter) { iface_counter index = not_supported; if (counter == NULL)