projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oconfig: fix oconfig_free to free all elements
[collectd.git]
/
src
/
collectdctl.c
diff --git
a/src/collectdctl.c
b/src/collectdctl.c
index
3bd8f04
..
0b8d0c1
100644
(file)
--- a/
src/collectdctl.c
+++ b/
src/collectdctl.c
@@
-65,7
+65,7
@@
# endif
#endif /* NAN_ZERO_ZERO */
# endif
#endif /* NAN_ZERO_ZERO */
-#include "libcollectdclient/client.h"
+#include "libcollectdclient/c
ollectd/c
lient.h"
#define DEFAULT_SOCK LOCALSTATEDIR"/run/"PACKAGE_NAME"-unixsock"
#define DEFAULT_SOCK LOCALSTATEDIR"/run/"PACKAGE_NAME"-unixsock"
@@
-485,7
+485,7
@@
static int putval (lcc_connection_t *c, int argc, char **argv)
while (value != 0) {
char *dot, *endptr;
while (value != 0) {
char *dot, *endptr;
- tmp = strchr (
argv[i]
, (int)':');
+ tmp = strchr (
value
, (int)':');
if (tmp != NULL) {
*tmp = '\0';
if (tmp != NULL) {
*tmp = '\0';