From: Marc Fournier Date: Mon, 4 Aug 2014 11:37:09 +0000 (+0200) Subject: fix: use DOUBLE_TO_CDTIME_T() to match input type X-Git-Tag: collectd-5.3.2~57 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=524b85687dbbd4cc2bbb650caf300162dcd16e96;p=collectd.git fix: use DOUBLE_TO_CDTIME_T() to match input type ... 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. --- diff --git a/src/utils_cmd_putnotif.c b/src/utils_cmd_putnotif.c index cba08bfa..d3cf3834 100644 --- 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 */