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/playerdb.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'FICS/playerdb.h') diff --git a/FICS/playerdb.h b/FICS/playerdb.h index 6eaf1e7..5d1a55d 100644 --- a/FICS/playerdb.h +++ b/FICS/playerdb.h @@ -59,8 +59,9 @@ #define SORT_WILD 3 typedef struct _statistics { - int num, win, los, dra, rating, ltime, best, whenbest; double sterr; + int num, win, los, dra, rating, best, whenbest; + time_t ltime; } statistics; #define PEND_MATCH 0 @@ -109,12 +110,12 @@ typedef struct _player { int kiblevel; int lastColor; int last_channel; - int last_command_time; + time_t last_command_time; int last_opponent; int last_tell; - int lastshout_a; - int lastshout_b; - int logon_time; + time_t lastshout_a; + time_t lastshout_b; + time_t logon_time; int num_comments; // number of lines in comments file int num_from; int num_observe; @@ -127,8 +128,8 @@ typedef struct _player { int socket; int sopen; int status; - int timeOfReg; - int totalTime; + time_t timeOfReg; + time_t totalTime; long last_file_byte; pending p_from_list[MAX_PENDING]; pending p_to_list[MAX_PENDING]; -- cgit v1.2.3