From: Ruben Kerkhof Date: Sat, 5 Mar 2016 15:42:24 +0000 (+0100) Subject: vserver plugin: constify X-Git-Tag: collectd-5.6.0~418 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c46de999c573d948dea1b422d31247d41cba0c52;p=collectd.git vserver plugin: constify --- diff --git a/src/vserver.c b/src/vserver.c index bd2e8673..6c09f439 100644 --- a/src/vserver.c +++ b/src/vserver.c @@ -215,7 +215,7 @@ static int vserver_read (void) { derive_t rx; derive_t tx; - char *type_instance; + const char *type_instance; if (strsplit (buffer, cols, 4) < 4) continue; @@ -265,7 +265,7 @@ static int vserver_read (void) if (2 == n) { - char *type_instance; + const char *type_instance; gauge_t value; if (0 == strcmp (cols[0], "nr_threads:")) @@ -314,8 +314,8 @@ static int vserver_read (void) while ((fh != NULL) && (NULL != fgets (buffer, BUFSIZE, fh))) { - char *type = "vs_memory"; - char *type_instance; + const char *type = "vs_memory"; + const char *type_instance; gauge_t value; if (strsplit (buffer, cols, 2) < 2)