From 761eb0701666df9ecd8d9f03105a776957b3dd2f Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Tue, 14 May 2024 19:49:39 +0200 Subject: [PATCH] lib/getdate.y: NULL doesn't need a cast Signed-off-by: Alejandro Colomar --- lib/getdate.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/getdate.y b/lib/getdate.y index 8cea2cc4..b71bf198 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -821,7 +821,7 @@ time_t get_date (const char *p, const time_t *now) time_t Start; yyInput = p; - Start = now ? *now : time ((time_t *) NULL); + Start = now ? *now : time(NULL); tmp = localtime (&Start); yyYear = tmp->tm_year + TM_YEAR_ORIGIN; yyMonth = tmp->tm_mon + 1; @@ -935,7 +935,7 @@ main(void) buff[MAX_BUFF_LEN] = 0; while (fgets (buff, MAX_BUFF_LEN, stdin) && buff[0]) { - d = get_date (buff, (time_t *) NULL); + d = get_date(buff, NULL); if (d == -1) (void) printf ("Bad format - couldn't convert.\n"); else