projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/Makefile: Don't unnecessarily set plugin specific CXXFLAGS.
[collectd.git]
/
src
/
ted.c
diff --git
a/src/ted.c
b/src/ted.c
index
bf519bb
..
37ab85d
100644
(file)
--- a/
src/ted.c
+++ b/
src/ted.c
@@
-104,7
+104,6
@@
static int ted_read_value(double *ret_power, double *ret_voltage)
/* Loop until we find the end of the package */
end_flag = 0;
/* Loop until we find the end of the package */
end_flag = 0;
- escape_flag = 0;
package_buffer_pos = 0;
while (end_flag == 0)
{
package_buffer_pos = 0;
while (end_flag == 0)
{
@@
-148,7
+147,7
@@
static int ted_read_value(double *ret_power, double *ret_voltage)
WARNING ("ted plugin: Received EOF from file descriptor.");
return (-1);
}
WARNING ("ted plugin: Received EOF from file descriptor.");
return (-1);
}
- else if (
receive_buffer_length
> sizeof (receive_buffer))
+ else if (
((size_t) receive_buffer_length)
> sizeof (receive_buffer))
{
ERROR ("ted plugin: read(2) returned invalid value %zi.",
receive_buffer_length);
{
ERROR ("ted plugin: read(2) returned invalid value %zi.",
receive_buffer_length);
@@
-264,7
+263,7
@@
static int ted_open_device (void)
return (0);
} /* int ted_open_device */
return (0);
} /* int ted_open_device */
-static void ted_submit (char *type, double value)
+static void ted_submit (c
onst c
har *type, double value)
{
value_t values[1];
value_list_t vl = VALUE_LIST_INIT;
{
value_t values[1];
value_list_t vl = VALUE_LIST_INIT;