X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fonewire.c;h=58c35e1eb83be009b342fbfbb7af8f2a7642cb2b;hb=584f57cc8cfb14cbcc45714db5dc87304ccb2a0e;hp=1383fc5803451437e6009b801ecbc0c6c16c798c;hpb=2761756b5ad2c9a973b30540633218202860a4d7;p=collectd.git diff --git a/src/onewire.c b/src/onewire.c index 1383fc58..58c35e1e 100644 --- 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); - status = -1; continue; } @@ -528,7 +527,6 @@ static int cow_simple_read (void) if (endptr == NULL) { ERROR ("onewire plugin: Buffer is not a number: %s", buffer); - status = -1; continue; } @@ -592,7 +590,6 @@ static int cow_shutdown (void) static int cow_init (void) { int status; - struct timespec cb_interval; if (device_g == NULL) { @@ -608,11 +605,8 @@ static int cow_init (void) return (1); } - CDTIME_T_TO_TIMESPEC (ow_interval, &cb_interval); - 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);