cpu plugin: Return an integer even under FreeBSD.
[collectd.git] / src / cpu.c
index 2a1c53a..d774ca4 100644 (file)
--- a/src/cpu.c
+++ b/src/cpu.c
@@ -383,7 +383,7 @@ static int cpu_read (void)
                plugin_complain (LOG_ERR, &complain_obj, "cpu plugin: "
                                "sysctlbyname failed: %s.",
                                sstrerror (errno, errbuf, sizeof (errbuf)));
-               return;
+               return (-1);
        }
 
        plugin_relief (LOG_NOTICE, &complain_obj, "cpu plugin: "