From a4f2f13e2f2943c20bc3bce724a5cc5b63fbf79b Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Mon, 9 Mar 2015 13:07:23 +0000 Subject: timer.c no longer gives compiler warnings on incompatible format. --- timer.c | 4 ++-- 1 file 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"); -- cgit v1.2.3-54-g00ecf