summaryrefslogtreecommitdiffstats
path: root/src/sandglass.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sandglass.c')
-rw-r--r--src/sandglass.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sandglass.c b/src/sandglass.c
index 0710788..a056980 100644
--- a/src/sandglass.c
+++ b/src/sandglass.c
@@ -18,7 +18,7 @@
* <http://www.gnu.org/licenses/>. *
*************************************************************************/
-#include "sandglass_impl.h"
+#include "sandglass-impl.h"
#include "sandglass.h"
#include <unistd.h>
#include <time.h>
@@ -164,7 +164,8 @@ sandglass_real_gettime(sandglass_t *sandglass)
break;
case SANDGLASS_SYSTEM:
- if ((clock_ticks = clock()) == -1)
+ clock_ticks = clock();
+ if (clock_ticks == -1)
return -1;
sandglass->grains = clock_ticks;
break;