From f2bf991ac5ef490aa72edfc5973e75f3bad9375a Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 25 Dec 2023 17:34:53 +0100 Subject: Reformatted tenth_secs() --- FICS/utils.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/FICS/utils.c b/FICS/utils.c index 7916723..6f9075f 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -677,18 +677,19 @@ strgtime(time_t *clock) return strtime(stm); } -/* This is used only for relative timeing since it reports seconds since - * about 5:00pm on Feb 16, 1994 +/* + * This is used only for relative timing since it reports seconds + * since about 5:00 pm on Feb 16, 1994. */ -PUBLIC unsigned tenth_secs(void) +PUBLIC unsigned +tenth_secs(void) { - struct timeval tp; - struct timezone tzp; + struct timeval tp; + struct timezone tzp; + + gettimeofday(&tp, &tzp); - gettimeofday(&tp, &tzp); -/* .1 seconds since 1970 almost fills a 32 bit int! So lets subtract off - * the time right now */ - return ((tp.tv_sec - 331939277) * 10L) + (tp.tv_usec / 100000); + return ((tp.tv_sec - 331939277) * 10L) + (tp.tv_usec / 100000); } /* -- cgit v1.2.3