diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 17:31:16 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 17:31:16 +0100 |
commit | a6e29d12b5dc8a1f453e5dd8bd794929912cecea (patch) | |
tree | f0fc7fe4aa1ba434d4fec35c496e96e7443dd3fa /FICS | |
parent | d7e47955e60dfaf582542a3ce3a33643a4c90890 (diff) |
Reformatted functions
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/utils.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/FICS/utils.c b/FICS/utils.c index ed70941..7916723 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -691,18 +691,21 @@ PUBLIC unsigned tenth_secs(void) return ((tp.tv_sec - 331939277) * 10L) + (tp.tv_usec / 100000); } -/* This is to translate tenths-secs time back into 1/1/70 time in full - * seconds, because vek didn't read utils.c when he programmed new ratings. - 1 sec since 1970 fits into a 32 bit int OK. -*/ -PUBLIC int untenths(unsigned tenths) +/* + * This is to translate tenths-secs time back into 1/1/70 time in full + * seconds, because vek didn't read utils.c when he programmed new + * ratings. 1 sec since 1970 fits into a 32 bit int OK. + */ +PUBLIC int +untenths(unsigned tenths) { - return (tenths / 10 + 331939277 + 0xffffffff / 10 + 1); + return (tenths / 10 + 331939277 + 0xffffffff / 10 + 1); } -PUBLIC char *tenth_str(unsigned t, int spaces) +PUBLIC char * +tenth_str(unsigned t, int spaces) { - return hms((t + 5) / 10, 0, 1, spaces); /* Round it */ + return hms((t + 5) / 10, 0, 1, spaces); } /* |