diff --git a/src/onewire.c b/src/onewire.c
index 1383fc5803451437e6009b801ecbc0c6c16c798c..58c35e1eb83be009b342fbfbb7af8f2a7642cb2b 100644 (file)
--- a/src/onewire.c
+++ b/src/onewire.c
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;
}
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;
}
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)
{
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);