aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2015-03-09 13:07:23 +0000
committerTomasz Kramkowski <tk@the-tk.com>2015-03-09 13:07:23 +0000
commita4f2f13e2f2943c20bc3bce724a5cc5b63fbf79b (patch)
tree276c0085c2997609bc5400aeb03138d07843bba4
parent382d2d431d1f2080d9dae9baadaa00495d903c24 (diff)
downloadc-stuff-a4f2f13e2f2943c20bc3bce724a5cc5b63fbf79b.tar.gz
c-stuff-a4f2f13e2f2943c20bc3bce724a5cc5b63fbf79b.tar.xz
c-stuff-a4f2f13e2f2943c20bc3bce724a5cc5b63fbf79b.zip
timer.c no longer gives compiler warnings on incompatible format.
-rw-r--r--timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/timer.c b/timer.c
index 506af50..fa46885 100644
--- a/timer.c
+++ b/timer.c
@@ -37,11 +37,11 @@ int main(int argc, char **argv)
for (int i = 1; i < argc; i++)
total_seconds += get_seconds(argv[i]);
- printf("Total time: %lu second(s).\nStarted at: %d\n", total_seconds, time(NULL));
+ printf("Total time: %lu second(s).\nStarted at: %ld\n", total_seconds, time(NULL));
sleep(total_seconds);
- printf("Ended at: %d\n", time(NULL));
+ printf("Ended at: %ld\n", time(NULL));
while (1) {
printf("Ring!\a\n");