projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed5fd2d
)
nfs, zfs_arc plugins: Make sure to return from non-void function.
author
Sebastian Harl
<sh@teamix.net>
Thu, 2 Aug 2012 09:28:13 +0000
(11:28 +0200)
committer
Sebastian Harl
<sh@teamix.net>
Thu, 1 Jan 1970 00:00:00 +0000
(
01:00
+0100)
src/nfs.c
patch
|
blob
|
history
src/zfs_arc.c
patch
|
blob
|
history
diff --git
a/src/nfs.c
b/src/nfs.c
index
5f7c308
..
461e806
100644
(file)
--- 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
dd12040
..
f4352ff
100644
(file)
--- 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)