From 39ef2de9c9a29ae6ce6a2847361f6e25aa2117d1 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 2 Aug 2012 11:28:13 +0200 Subject: [PATCH] nfs, zfs_arc plugins: Make sure to return from non-void function. --- src/nfs.c | 1 + src/zfs_arc.c | 2 ++ 2 files changed, 3 insertions(+) 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) -- 2.11.0