From 1fdb04e6cb573ad06b914b9371f21ffb255b1d13 Mon Sep 17 00:00:00 2001 From: Daniel Leite Date: Thu, 21 Jun 2007 10:38:24 +0200 Subject: [PATCH] cpu, interface plugin: Fix compilation issues under Solaris. --- src/cpu.c | 2 +- src/interface.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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++) { -- 2.30.2