diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-05-09 22:47:50 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-05-09 22:47:50 +0200 |
commit | 56ae9cf88f9603a780cf6b5cf9b7483cd9d252a2 (patch) | |
tree | b95b6a072f79c01800fd42deb5bc49fed9fcbd8e /FICS/talkproc.c | |
parent | 9bf7f856804aca90cfb285e1e94ba16b7d42bf2d (diff) |
Usage of 'time_t'
Diffstat (limited to 'FICS/talkproc.c')
-rw-r--r-- | FICS/talkproc.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 " |