From: Sebastian Harl Date: Thu, 2 Aug 2012 09:28:13 +0000 (+0200) Subject: nfs, zfs_arc plugins: Make sure to return from non-void function. X-Git-Tag: collectd-5.1.1~11^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=39ef2de9c9a29ae6ce6a2847361f6e25aa2117d1;p=collectd.git nfs, zfs_arc plugins: Make sure to return from non-void function. --- diff --git a/src/nfs.c b/src/nfs.c index 5f7c3085..461e806f 100644 --- a/src/nfs.c +++ b/src/nfs.c @@ -337,6 +337,7 @@ static int nfs_read_kstat (kstat_t *ksp, int nfs_version, char *inst, nfs_procedures_submit (plugin_instance, proc_names, values, proc_names_num); + return (0); } #endif diff --git a/src/zfs_arc.c b/src/zfs_arc.c index dd120409..f4352ff4 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -69,6 +69,7 @@ static int za_read_derive (kstat_t *ksp, const char *kstat_value, v.derive = (derive_t) tmp; za_submit (type, type_instance, /* values = */ &v, /* values_num = */ 1); + return (0); } static int za_read_gauge (kstat_t *ksp, const char *kstat_value, @@ -86,6 +87,7 @@ static int za_read_gauge (kstat_t *ksp, const char *kstat_value, v.gauge = (gauge_t) tmp; za_submit (type, type_instance, /* values = */ &v, /* values_num = */ 1); + return (0); } static void za_submit_ratio (const char* type_instance, gauge_t hits, gauge_t misses)