projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
virt: Fix memory leak with libvirt MetadataXPath enabled
[collectd.git]
/
src
/
network.c
diff --git
a/src/network.c
b/src/network.c
index
64c6d24
..
cf2f811
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);
@@
-1108,7
+1108,7
@@
static int parse_part_sign_sha256(sockent_t *se, /* {{{ */
return 0;
} /* }}} int parse_part_sign_sha256 */
return 0;
} /* }}} int parse_part_sign_sha256 */
-/* #endif HAVE_GCRYPT_H */
+
/* #endif HAVE_GCRYPT_H */
#else /* if !HAVE_GCRYPT_H */
static int parse_part_sign_sha256(sockent_t *se, /* {{{ */
#else /* if !HAVE_GCRYPT_H */
static int parse_part_sign_sha256(sockent_t *se, /* {{{ */
@@
-1263,7
+1263,7
@@
static int parse_part_encr_aes256(sockent_t *se, /* {{{ */
return 0;
} /* }}} int parse_part_encr_aes256 */
return 0;
} /* }}} int parse_part_encr_aes256 */
-/* #endif HAVE_GCRYPT_H */
+
/* #endif HAVE_GCRYPT_H */
#else /* if !HAVE_GCRYPT_H */
static int parse_part_encr_aes256(sockent_t *se, /* {{{ */
#else /* if !HAVE_GCRYPT_H */
static int parse_part_encr_aes256(sockent_t *se, /* {{{ */
@@
-1668,7
+1668,7
@@
static int network_set_interface(const sockent_t *se,
ERROR("network plugin: setsockopt (bind-if): %s", STRERRNO);
return -1;
}
ERROR("network plugin: setsockopt (bind-if): %s", STRERRNO);
return -1;
}
-/* #endif HAVE_IF_INDEXTONAME && SO_BINDTODEVICE */
+
/* #endif HAVE_IF_INDEXTONAME && SO_BINDTODEVICE */
#else
WARNING("network plugin: Cannot set the interface on a unicast "
#else
WARNING("network plugin: Cannot set the interface on a unicast "
@@
-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);