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 #3153 from zebity/master
[collectd.git]
/
src
/
ted.c
diff --git
a/src/ted.c
b/src/ted.c
index
b803681
..
ff650a8
100644
(file)
--- a/
src/ted.c
+++ b/
src/ted.c
@@
-36,8
+36,8
@@
#include "collectd.h"
#include "collectd.h"
-#include "common.h"
#include "plugin.h"
#include "plugin.h"
+#include "utils/common/common.h"
#if HAVE_TERMIOS_H && HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#if HAVE_TERMIOS_H && HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
@@
-53,8
+53,8
@@
#define DEFAULT_DEVICE "/dev/ttyUSB0"
#define DEFAULT_DEVICE "/dev/ttyUSB0"
-static char *conf_device
= NULL
;
-static int conf_retries
= 0
;
+static char *conf_device;
+static int conf_retries;
static int fd = -1;
static int fd = -1;
@@
-243,7
+243,7
@@
static int ted_config(const char *key, const char *value) {
tmp = atoi(value);
if (tmp < 0) {
tmp = atoi(value);
if (tmp < 0) {
-
WARNING
("ted plugin: Invalid retry count: %i", tmp);
+
ERROR
("ted plugin: Invalid retry count: %i", tmp);
return 1;
}
conf_retries = tmp;
return 1;
}
conf_retries = tmp;