From e96f9f3869c6ea5803f5759bf1737547a46be22f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 19 Jul 2021 11:32:34 +0200 Subject: Change function declaration style This is a very sweeping change, but I feel that it is necessary. --- src/timing.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/timing.c') diff --git a/src/timing.c b/src/timing.c index 047d919..d7c5546 100644 --- a/src/timing.c +++ b/src/timing.c @@ -11,7 +11,9 @@ static const unsigned long MAX_TIME_SECONDS = 60; /**************************************************************************** * Get the current time in milliseconds since midnight 1970-01-01 UTC. ****************************************************************************/ -void GetCurrentTime(TimeType *t) { +void +GetCurrentTime(TimeType *t) +{ struct timeval val; gettimeofday(&val, NULL); t->seconds = val.tv_sec; @@ -24,7 +26,9 @@ void GetCurrentTime(TimeType *t) { * MAX_TIME_SECONDS will be returned. * Note that the times must be normalized. ****************************************************************************/ -unsigned long GetTimeDifference(const TimeType *t1, const TimeType *t2) { +unsigned long +GetTimeDifference(const TimeType *t1, const TimeType *t2) +{ unsigned long deltaSeconds; int deltaMs; -- cgit v1.2.3