projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
write_graphite plugin: Coding style fixes.
[collectd.git]
/
src
/
onewire.c
diff --git
a/src/onewire.c
b/src/onewire.c
index
1383fc5
..
58c35e1
100644
(file)
--- a/
src/onewire.c
+++ b/
src/onewire.c
@@
-384,7
+384,6
@@
static int cow_read_values (const char *path, const char *name,
if (endptr == NULL)
{
ERROR ("onewire plugin: Buffer is not a number: %s", buffer);
if (endptr == NULL)
{
ERROR ("onewire plugin: Buffer is not a number: %s", buffer);
- status = -1;
continue;
}
continue;
}
@@
-528,7
+527,6
@@
static int cow_simple_read (void)
if (endptr == NULL)
{
ERROR ("onewire plugin: Buffer is not a number: %s", buffer);
if (endptr == NULL)
{
ERROR ("onewire plugin: Buffer is not a number: %s", buffer);
- status = -1;
continue;
}
continue;
}
@@
-592,7
+590,6
@@
static int cow_shutdown (void)
static int cow_init (void)
{
int status;
static int cow_init (void)
{
int status;
- struct timespec cb_interval;
if (device_g == NULL)
{
if (device_g == NULL)
{
@@
-608,11
+605,8
@@
static int cow_init (void)
return (1);
}
return (1);
}
- CDTIME_T_TO_TIMESPEC (ow_interval, &cb_interval);
-
plugin_register_complex_read (/* group = */ NULL, "onewire", cow_read,
plugin_register_complex_read (/* group = */ NULL, "onewire", cow_read,
- (ow_interval != 0) ? &cb_interval : NULL,
- /* user data = */ NULL);
+ ow_interval, /* user data = */ NULL);
plugin_register_shutdown ("onewire", cow_shutdown);
return (0);
plugin_register_shutdown ("onewire", cow_shutdown);
return (0);