From a6e29d12b5dc8a1f453e5dd8bd794929912cecea Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 25 Dec 2023 17:31:16 +0100 Subject: Reformatted functions --- FICS/utils.c | 19 +++++++++++-------- 1 file 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); } /* -- cgit v1.2.3