summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index ff6c15c..5e1f799 100644
--- a/src/main.c
+++ b/src/main.c
@@ -293,7 +293,7 @@ main(int argc, char * const argv[])
return EXIT_SUCCESS;
}
- time(&now);
+ now = time(NULL);
dif = difftime(arg, now);
if (dif >= 1000 * 24 * 60 * 60) {
fputs("Date too far in the future\n", stderr);
@@ -308,7 +308,7 @@ main(int argc, char * const argv[])
(int) dif / 60 % 60,
(int) dif % 60);
sleep(1);
- time(&now);
+ now = time(NULL);
dif = difftime(arg, now);
}
printf("\r000:00:00:00\n");