summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d7aa395)
raw | patch | inline | side by side (parent: d7aa395)
author | Sebastian Harl <sh@teamix.net> | |
Thu, 2 Aug 2012 09:25:51 +0000 (11:25 +0200) | ||
committer | Sebastian Harl <sh@teamix.net> | |
Thu, 2 Aug 2012 12:02:05 +0000 (14:02 +0200) |
kstat_data_lookup() and get_kstat_value() expect char pointers rather than
const char pointers.
const char pointers.
src/nfs.c | patch | blob | history | |
src/zfs_arc.c | patch | blob | history |
diff --git a/src/nfs.c b/src/nfs.c
index 58f2e0d23b37316ae1e48be719aa37ac82fc692c..5f7c30851d3e7e4f72264f4b8b290d92d06c2a3b 100644 (file)
--- a/src/nfs.c
+++ b/src/nfs.c
kstat_read(kc, ksp, NULL);
for (i = 0; i < proc_names_num; i++)
- values[i].counter = (derive_t) get_kstat_value (ksp, proc_names[i]);
+ values[i].counter = (derive_t) get_kstat_value (ksp,
+ (char *)proc_names[i]);
nfs_procedures_submit (plugin_instance, proc_names, values,
proc_names_num);
diff --git a/src/zfs_arc.c b/src/zfs_arc.c
index e77569f5d0996c6e7f94b53eac51ece91d02805a..dd120409d582dba6a2f44cbe2b41d1fe18061f5a 100644 (file)
--- a/src/zfs_arc.c
+++ b/src/zfs_arc.c
long long tmp;
value_t v;
- tmp = get_kstat_value (ksp, kstat_value);
+ tmp = get_kstat_value (ksp, (char *)kstat_value);
if (tmp == -1LL)
{
ERROR ("zfs_arc plugin: Reading kstat value \"%s\" failed.", kstat_value);
long long tmp;
value_t v;
- tmp = get_kstat_value (ksp, kstat_value);
+ tmp = get_kstat_value (ksp, (char *)kstat_value);
if (tmp == -1LL)
{
ERROR ("zfs_arc plugin: Reading kstat value \"%s\" failed.", kstat_value);