diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-31 16:15:08 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-31 16:15:08 +0100 |
commit | 7ee5e7e26c106fb58bb87aa47c9fa902c1b94efb (patch) | |
tree | 22544ca60b41d7fd119b308fdc3f38e77f004bd0 | |
parent | 34b08a0e45003daf1e8db447d0201ae76d70d77d (diff) |
Reformatted functions
-rw-r--r-- | FICS/playerdb.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c index c89325a..a1d3e9a 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -1196,17 +1196,19 @@ PUBLIC int player_count(int CountAdmins) return count; } -PUBLIC int player_idle(int p) -{ - if (parray[p].status != PLAYER_PROMPT) - return time(0) - parray[p].logon_time; - else - return time(0) - parray[p].last_command_time; +PUBLIC int +player_idle(int p) +{ // XXX + if (parray[p].status != PLAYER_PROMPT) + return (time(NULL) - parray[p].logon_time); + + return (time(NULL) - parray[p].last_command_time); } -PUBLIC int player_ontime(int p) -{ - return time(0) - parray[p].logon_time; +PUBLIC int +player_ontime(int p) +{ // XXX + return (time(NULL) - parray[p].logon_time); } PRIVATE void |