libstatgrab: fix sg_init() invocation for libstatgrab >= 0.9
[collectd.git] / src / daemon / collectd.c
index 2e2d821..8c4d6e6 100644 (file)
@@ -307,7 +307,11 @@ static int do_init (void)
 #endif
 
 #if HAVE_LIBSTATGRAB
-       if (sg_init ())
+       if (sg_init (
+# if HAVE_LIBSTATGRAB_INIT_ARG
+                   0
+# endif
+                   ))
        {
                ERROR ("sg_init: %s", sg_str_error (sg_get_error ()));
                return (-1);