projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3152 from rpv-tomsk/libvirt-memory-report
[collectd.git]
/
src
/
network.c
diff --git
a/src/network.c
b/src/network.c
index
64c6d24
..
f6f0ac1
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-27,8
+27,8
@@
#include "collectd.h"
#include "collectd.h"
-#include "common.h"
#include "plugin.h"
#include "plugin.h"
+#include "utils/common/common.h"
#include "utils_cache.h"
#include "utils_complain.h"
#include "utils_fbhash.h"
#include "utils_cache.h"
#include "utils_complain.h"
#include "utils_fbhash.h"
@@
-403,7
+403,7
@@
static int network_dispatch_values(value_list_t *vl, /* {{{ */
#if COLLECT_DEBUG
char name[6 * DATA_MAX_NAME_LEN];
FORMAT_VL(name, sizeof(name), vl);
#if COLLECT_DEBUG
char name[6 * DATA_MAX_NAME_LEN];
FORMAT_VL(name, sizeof(name), vl);
- name[sizeof(name) - 1] =
0
;
+ name[sizeof(name) - 1] =
'\0'
;
DEBUG("network plugin: network_dispatch_values: "
"NOT dispatching %s.",
name);
DEBUG("network plugin: network_dispatch_values: "
"NOT dispatching %s.",
name);
@@
-2640,7
+2640,7
@@
static int network_write(const data_set_t *ds, const value_list_t *vl,
#if COLLECT_DEBUG
char name[6 * DATA_MAX_NAME_LEN];
FORMAT_VL(name, sizeof(name), vl);
#if COLLECT_DEBUG
char name[6 * DATA_MAX_NAME_LEN];
FORMAT_VL(name, sizeof(name), vl);
- name[sizeof(name) - 1] =
0
;
+ name[sizeof(name) - 1] =
'\0'
;
DEBUG("network plugin: network_write: "
"NOT sending %s.",
name);
DEBUG("network plugin: network_write: "
"NOT sending %s.",
name);