diff options
author | joerg <joerg@pkgsrc.org> | 2013-04-14 19:45:30 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-04-14 19:45:30 +0000 |
commit | 991bb7365110c31b9333d461634fdb611afce59b (patch) | |
tree | b85058843f1f6f735c7ff46ec169785777cd9f3a /net/net-snmp/patches | |
parent | bd3e03f39579732e34cab6bd1c6c1f566e829959 (diff) | |
download | pkgsrc-991bb7365110c31b9333d461634fdb611afce59b.tar.gz |
Always return a value from a non-void function (hi christos!).
Diffstat (limited to 'net/net-snmp/patches')
-rw-r--r-- | net/net-snmp/patches/patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/net-snmp/patches/patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c b/net/net-snmp/patches/patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c index cca5f0958c0..235e223f17a 100644 --- a/net/net-snmp/patches/patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c +++ b/net/net-snmp/patches/patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c @@ -1,4 +1,4 @@ -$NetBSD: patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c,v 1.4 2013/04/05 07:59:20 tron Exp $ +$NetBSD: patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c,v 1.5 2013/04/14 19:45:31 joerg Exp $ --- agent/mibgroup/hardware/cpu/cpu_sysctl.c.orig 2012-10-09 18:28:58.000000000 -0400 +++ agent/mibgroup/hardware/cpu/cpu_sysctl.c 2013-04-04 20:55:47.000000000 -0400 @@ -87,7 +87,7 @@ $NetBSD: patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c,v 1.4 2013/04/05 07:59: + int i; + if (ncpu_stats == NULL) { + snmp_log(LOG_ERR, "no memory for kern.cp_time (errno %d)\n", errno); -+ return; ++ return -1; + } + if (sysctlbyname("kern.cp_time", ncpu_stats, &ncpu_size, NULL, 0) == -1) + snmp_log(LOG_ERR, "sysctl kern.cp_time failed (errno %d)\n", errno); |