]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
use derive_t instead of int inside ovs_stats_get_port_stat_value
authorAntti Nykanen <antti.nykanen@nokia.com>
Fri, 10 Dec 2021 10:36:53 +0000 (12:36 +0200)
committerMatthias Runge <mrunge@matthias-runge.de>
Mon, 12 Dec 2022 08:53:31 +0000 (09:53 +0100)
src/ovs_stats.c

index 7ac65ca25f22153732b7cd40978e84d791adfc62..aafc84f093e51430077559fe4ade1d527de0780b 100644 (file)
@@ -371,12 +371,12 @@ static void ovs_stats_submit_interfaces(port_list_t *port) {
   }
 }
 
-static int ovs_stats_get_port_stat_value(port_list_t *port,
-                                         iface_counter index) {
+static derive_t ovs_stats_get_port_stat_value(port_list_t *port,
+                                              iface_counter index) {
   if (port == NULL)
     return 0;
 
-  int value = 0;
+  derive_t value = 0;
 
   for (interface_list_t *iface = port->iface; iface != NULL;
        iface = iface->next) {