From: Florian Forster Date: Sat, 29 Aug 2009 13:25:23 +0000 (+0200) Subject: zfs_arc plugin: Fix a small typo. X-Git-Tag: collectd-4.8.0~24^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=acf568ce4d90d78d63eed0fe74390fdd3348c1c8;p=collectd.git zfs_arc plugin: Fix a small typo. --- diff --git a/src/zfs_arc.c b/src/zfs_arc.c index 43e5b03e..5f14e909 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -29,7 +29,7 @@ static kstat_t *ksp; extern kstat_ctl_t *kc; -static void za_submit (const char* type, const char* type_instance, value_t values[], int values_len) +static void za_submit (const char* type, const char* type_instance, value_t* values, int values_len) { value_list_t vl = VALUE_LIST_INIT; @@ -39,7 +39,7 @@ static void za_submit (const char* type, const char* type_instance, value_t valu sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "zfs_arc", sizeof (vl.plugin)); sstrncpy (vl.type, type, sizeof (vl.type)); - sstrncpy (vl.type_instance, type_instance, sizeof (vl.type)); + sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance)); plugin_dispatch_values (&vl); }