diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-03-17 12:00:33 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-03-17 12:00:33 -0400 |
commit | 74104582e27ef76790c9d954464b53b0e45a2b43 (patch) | |
tree | e223c8ea3ffddf14aa02a776a03ddb0f46fe910a /src/timespec.c | |
parent | a16a3c9f97072b1532c40637d53b1219addcbe00 (diff) | |
download | libsandglass-74104582e27ef76790c9d954464b53b0e45a2b43.tar.xz |
Minor formatting and style fixes.
Diffstat (limited to 'src/timespec.c')
-rw-r--r-- | src/timespec.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 @@ * <http://www.gnu.org/licenses/>. * *************************************************************************/ -#include "sandglass_impl.h" +#include "sandglass-impl.h" #include "sandglass.h" #include <time.h> #include <unistd.h> @@ -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 */ |