From: Ruben Kerkhof Date: Sat, 5 Mar 2016 13:03:03 +0000 (+0100) Subject: nfs plugin: constify X-Git-Tag: collectd-5.6.0~424 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3e16fd0635e02f4e6d680d003ad653841bca8523;p=collectd.git nfs plugin: constify --- diff --git a/src/nfs.c b/src/nfs.c index be823720..a921a177 100644 --- a/src/nfs.c +++ b/src/nfs.c @@ -554,7 +554,7 @@ static int nfs_submit_nfs4_client (const char *instance, char **fields, return (0); } -static void nfs_read_linux (FILE *fh, char *inst) +static void nfs_read_linux (FILE *fh, const char *inst) { char buffer[1024]; @@ -603,7 +603,7 @@ static void nfs_read_linux (FILE *fh, char *inst) #endif /* KERNEL_LINUX */ #if HAVE_LIBKSTAT -static int nfs_read_kstat (kstat_t *ksp, int nfs_version, char *inst, +static int nfs_read_kstat (kstat_t *ksp, int nfs_version, const char *inst, char const **proc_names, size_t proc_names_num) { char plugin_instance[DATA_MAX_NAME_LEN];