projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9ab99c
)
fix: use DOUBLE_TO_CDTIME_T() to match input type
author
Marc Fournier
<marc.fournier@camptocamp.com>
Mon, 4 Aug 2014 11:37:09 +0000
(13:37 +0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Mon, 4 Aug 2014 11:37:09 +0000
(13:37 +0200)
... as strtod() returns a double not a time_t.
Follow-up to
7d1d59fb
to match what
ada80db25
does (currently in
master) and avoid a merge conflict.
src/utils_cmd_putnotif.c
patch
|
blob
|
history
diff --git
a/src/utils_cmd_putnotif.c
b/src/utils_cmd_putnotif.c
index
cba08bf
..
d3cf383
100644
(file)
--- a/
src/utils_cmd_putnotif.c
+++ b/
src/utils_cmd_putnotif.c
@@
-60,7
+60,7
@@
static int set_option_time (notification_t *n, const char *value)
|| (*endptr != 0)) /* Trailing chars */
return (-1);
- n->time =
TIME_T
_TO_CDTIME_T (tmp);
+ n->time =
DOUBLE
_TO_CDTIME_T (tmp);
return (0);
} /* int set_option_time */