From 524b85687dbbd4cc2bbb650caf300162dcd16e96 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Mon, 4 Aug 2014 13:37:09 +0200 Subject: [PATCH] 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. --- src/utils_cmd_putnotif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.30.2