From: Daniel Leite Date: Thu, 21 Jun 2007 08:38:24 +0000 (+0200) Subject: cpu, interface plugin: Fix compilation issues under Solaris. X-Git-Tag: collectd-4.0.4~6 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1fdb04e6cb573ad06b914b9371f21ffb255b1d13;p=collectd.git cpu, interface plugin: Fix compilation issues under Solaris. --- diff --git a/src/cpu.c b/src/cpu.c index 4c852a53..cbdde1ec 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -340,7 +340,7 @@ static int cpu_read (void) static cpu_stat_t cs; if (kc == NULL) - return; + return (-1); for (cpu = 0; cpu < numcpu; cpu++) { diff --git a/src/interface.c b/src/interface.c index c439ebd6..52b2ddf0 100644 --- a/src/interface.c +++ b/src/interface.c @@ -317,7 +317,7 @@ static int interface_read (void) unsigned long long tx; if (kc == NULL) - return; + return (-1); for (i = 0; i < numif; i++) {