projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b1ae7f
)
vserver plugin: constify
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 15:42:24 +0000
(16:42 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 15:42:24 +0000
(16:42 +0100)
src/vserver.c
patch
|
blob
|
history
diff --git
a/src/vserver.c
b/src/vserver.c
index
bd2e867
..
6c09f43
100644
(file)
--- 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;
+ c
onst c
har *type_instance;
if (strsplit (buffer, cols, 4) < 4)
continue;
@@
-265,7
+265,7
@@
static int vserver_read (void)
if (2 == n)
{
- c
har
*type_instance;
+ c
onst 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;
+ c
onst c
har *type = "vs_memory";
+ c
onst c
har *type_instance;
gauge_t value;
if (strsplit (buffer, cols, 2) < 2)