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 | |
parent | bd3e03f39579732e34cab6bd1c6c1f566e829959 (diff) | |
download | pkgsrc-991bb7365110c31b9333d461634fdb611afce59b.tar.gz |
Always return a value from a non-void function (hi christos!).
-rw-r--r-- | net/net-snmp/distinfo | 4 | ||||
-rw-r--r-- | net/net-snmp/patches/patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/net-snmp/distinfo b/net/net-snmp/distinfo index 77aa118cd9c..297ff741fbc 100644 --- a/net/net-snmp/distinfo +++ b/net/net-snmp/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.76 2013/04/05 18:20:08 christos Exp $ +$NetBSD: distinfo,v 1.77 2013/04/14 19:45:30 joerg Exp $ SHA1 (net-snmp-5.7.2.tar.gz) = c493027907f32400648244d81117a126aecd27ee RMD160 (net-snmp-5.7.2.tar.gz) = 392d643e9f2f42ee4fa688b4702329ad005ee12e @@ -6,7 +6,7 @@ Size (net-snmp-5.7.2.tar.gz) = 6281352 bytes SHA1 (patch-ac) = 59987ecb9467b1cead9af3d4432a4dd69be93480 SHA1 (patch-af) = 4fb96b79f9126dedb8a132d44894ea23c9e8c101 SHA1 (patch-ag) = d9595eceeb5ee986ab4365f62e3c3ab339e605aa -SHA1 (patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c) = b528783f44b15f49eb1a65f919c7a5ec48fe7022 +SHA1 (patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c) = 346bb4cb0e905821aa3bbdda4ae0fd8526d35854 SHA1 (patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c) = 7fc48c58c8f5bc73caaf3990ef61a94fb856e208 SHA1 (patch-agent_mibgroup_hardware_memory_memory__netbsd.c) = f04d66f823bf2b49401e6d9a62db4b39ed679907 SHA1 (patch-agent_mibgroup_host_data__access_swrun__kinfo.c) = 054866e7c3ac90f183fd4a6d53763a5bba50572c 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); |