From 56ae9cf88f9603a780cf6b5cf9b7483cd9d252a2 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Thu, 9 May 2024 22:47:50 +0200 Subject: Usage of 'time_t' --- FICS/talkproc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'FICS/talkproc.c') diff --git a/FICS/talkproc.c b/FICS/talkproc.c index 635a1a3..275ac3b 100644 --- a/FICS/talkproc.c +++ b/FICS/talkproc.c @@ -64,8 +64,8 @@ int quota_time; PRIVATE int CheckShoutQuota(int p) { - int timeleft = 0; - int timenow = time(0); + time_t timeleft = 0; + time_t timenow = time(NULL); timeleft = timenow - parray[p].lastshout_a; @@ -110,7 +110,7 @@ com_shout(int p, param_list param) } parray[p].lastshout_a = parray[p].lastshout_b; - parray[p].lastshout_b = time(0); + parray[p].lastshout_b = time(NULL); if (!printablestring(param[0].val.string)) { pprintf(p, "Your message contains some unprintable " @@ -226,7 +226,7 @@ com_it(int p, param_list param) } parray[p].lastshout_a = parray[p].lastshout_b; - parray[p].lastshout_b = time(0); + parray[p].lastshout_b = time(NULL); if (!printablestring(param[0].val.string)) { pprintf(p, "Your message contains some unprintable " -- cgit v1.2.3