diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-17 19:53:42 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-17 19:53:42 +0100 |
commit | 76e4c3bba47dd3d9cdd6d3388f544b71532afd3a (patch) | |
tree | 5a8ca36a763c8b82a31efd4039dd478cab41cd08 /FICS | |
parent | 96cf02983d4c20b69e3fba82d0d3f0d5d8cd1187 (diff) |
com_date: changed the type of 't'
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/comproc.c | 13 |
1 files changed, 8 insertions, 5 deletions
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[] = { |