aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/comproc.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-01-03 03:09:33 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-01-03 03:09:33 +0100
commit11cbebb969feb57faf262d408f61822eb715365d (patch)
treeb6f4226ce05eb0c2717d5774dc5fe18830f0d5f8 /FICS/comproc.c
parentb6bab9010eebe1e476a757bbece7ba3c09e4eefa (diff)
time(0) -> time(NULL)
Diffstat (limited to 'FICS/comproc.c')
-rw-r--r--FICS/comproc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c
index a3b8de4..d35fe89 100644
--- a/FICS/comproc.c
+++ b/FICS/comproc.c
@@ -512,12 +512,12 @@ com_stats(int p, param_list param)
timeToStr[strlen(timeToStr) - 1] = '\0';
pprintf(p, "\n");
- onTime = ((time(0) - parray[p1].logon_time) +
+ onTime = ((time(NULL) - parray[p1].logon_time) +
parray[p1].totalTime);
pprintf(p, "Total time on-line: %s\n", hms_desc(onTime) );
pprintf(p, "%% of life on-line: %3.1f (since %s)\n", // XXX
- (double) ((onTime * 100) / (double) (time(0) -
+ (double) ((onTime * 100) / (double) (time(NULL) -
parray[p1].timeOfReg)),
timeToStr);
}
@@ -589,7 +589,7 @@ com_password(int p, param_list param)
PUBLIC int com_uptime(int p, param_list param)
{
- unsigned long uptime = time(0) - startuptime;
+ unsigned long uptime = time(NULL) - startuptime;
struct rusage ru;
int days = (uptime / (60*60*24));
int hours = ((uptime % (60*60*24)) / (60*60));