From 74104582e27ef76790c9d954464b53b0e45a2b43 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 17 Mar 2011 12:00:33 -0400 Subject: Minor formatting and style fixes. --- src/timespec.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/timespec.c') diff --git a/src/timespec.c b/src/timespec.c index c077f8b..1353076 100644 --- a/src/timespec.c +++ b/src/timespec.c @@ -18,7 +18,7 @@ * . * *************************************************************************/ -#include "sandglass_impl.h" +#include "sandglass-impl.h" #include "sandglass.h" #include #include @@ -75,18 +75,18 @@ sandglass_timespec_sub(struct timespec *ts, const struct timespec *d) int sandglass_timespec_cmp(const struct timespec *a, const struct timespec *b) { - if (a->tv_sec > b->tv_sec) + if (a->tv_sec > b->tv_sec) { return 1; - else if (a->tv_sec == b->tv_sec) { + } else if (a->tv_sec == b->tv_sec) { if (a->tv_nsec > b->tv_nsec) return 1; else if (a->tv_nsec == b->tv_nsec) return 0; else return -1; - } - else + } else { return -1; + } } /* Spins for the time interval specified by ts */ -- cgit v1.2.3