From 3e16fd0635e02f4e6d680d003ad653841bca8523 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 5 Mar 2016 14:03:03 +0100 Subject: [PATCH] nfs plugin: constify --- src/nfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; -- 2.30.2