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/playerdb.h | |
parent | 9bf7f856804aca90cfb285e1e94ba16b7d42bf2d (diff) |
Usage of 'time_t'
Diffstat (limited to 'FICS/playerdb.h')
-rw-r--r-- | FICS/playerdb.h | 15 |
1 files changed, 8 insertions, 7 deletions
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]; |