diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-19 11:32:34 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-19 11:32:34 +0200 |
commit | e96f9f3869c6ea5803f5759bf1737547a46be22f (patch) | |
tree | e070f699751eebad032a47f118293ef219f1e147 /src/timing.c | |
parent | 0d1af7a8c8e163250e940833d646a12852aa9e5b (diff) | |
download | jwm-e96f9f3869c6ea5803f5759bf1737547a46be22f.tar.gz |
Change function declaration style
This is a very sweeping change, but I feel that it is necessary.
Diffstat (limited to 'src/timing.c')
-rw-r--r-- | src/timing.c | 8 |
1 files changed, 6 insertions, 2 deletions
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; |