LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File collectd-fix-warnings.patch of Package collectd (Project server:monitoring)

--- src/netlink.c.orig	2009-02-17 12:56:09.000000000 +0100
+++ src/netlink.c	2009-02-17 12:56:44.000000000 +0100
@@ -573,7 +573,7 @@
   }
 
   if (rtnl_dump_filter (&rth, link_filter, /* arg1 = */ NULL,
-	NULL, NULL) != 0)
+	(rtnl_filter_t)NULL, NULL) != 0)
   {
     ERROR ("netlink plugin: ir_read: rtnl_dump_filter failed.");
     return (-1);
@@ -611,7 +611,7 @@
       }
 
       if (rtnl_dump_filter (&rth, qos_filter, (void *) &ifindex,
-	    NULL, NULL) != 0)
+	    (rtnl_filter_t)NULL, NULL) != 0)
       {
 	ERROR ("netlink plugin: ir_read: rtnl_dump_filter failed.");
 	continue;