X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ftimespec.h;h=81b342300e62c10d1376a8f62a7874e32218d278;hb=c358102053be9ce7f33788c579f6e1e034f143c9;hp=db3453a24cbd81d7ecbfbc9b76442288ec72b98f;hpb=02a5d9ca15dc8e71fe8af9e76e732e01c90fc703;p=gnulib.git diff --git a/lib/timespec.h b/lib/timespec.h index db3453a24..81b342300 100644 --- a/lib/timespec.h +++ b/lib/timespec.h @@ -1,6 +1,7 @@ /* timespec -- System time interface - Copyright (C) 2000, 2002, 2004, 2005, 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2000, 2002, 2004-2005, 2007, 2009-2010 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,10 +27,10 @@ static inline int timespec_cmp (struct timespec a, struct timespec b) { return (a.tv_sec < b.tv_sec ? -1 - : a.tv_sec > b.tv_sec ? 1 - : a.tv_nsec < b.tv_nsec ? -1 - : a.tv_nsec > b.tv_nsec ? 1 - : 0); + : a.tv_sec > b.tv_sec ? 1 + : a.tv_nsec < b.tv_nsec ? -1 + : a.tv_nsec > b.tv_nsec ? 1 + : 0); } void gettime (struct timespec *);