From: Alejandro Colomar Date: Tue, 14 May 2024 17:49:39 +0000 (+0200) Subject: lib/getdate.y: NULL doesn't need a cast X-Git-Tag: 4.17.0-rc1~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=761eb0701666df9ecd8d9f03105a776957b3dd2f;p=thirdparty%2Fshadow.git lib/getdate.y: NULL doesn't need a cast Signed-off-by: Alejandro Colomar --- diff --git a/lib/getdate.y b/lib/getdate.y index 8cea2cc4d..b71bf1984 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