From 76e4c3bba47dd3d9cdd6d3388f544b71532afd3a Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 17 Dec 2023 19:53:42 +0100 Subject: com_date: changed the type of 't' --- FICS/comproc.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'FICS') diff --git a/FICS/comproc.c b/FICS/comproc.c index 4c157bb..53e9800 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -510,12 +510,15 @@ PUBLIC int com_uptime(int p, param_list param) return COM_OK; } -PUBLIC int com_date(int p, param_list param) +PUBLIC int +com_date(int p, param_list param) { - int t = time(0); - pprintf(p, "Local time - %s\n", strltime(&t)); - pprintf(p, "Greenwich time - %s\n", strgtime(&t)); - return COM_OK; + time_t t = time(NULL); + + pprintf(p, "Local time - %s\n", strltime(&t)); + pprintf(p, "Greenwich time - %s\n", strgtime(&t)); + + return COM_OK; } char *inout_string[] = { -- cgit v1.2.3