diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2015-03-09 13:07:23 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2015-03-09 13:07:23 +0000 |
commit | a4f2f13e2f2943c20bc3bce724a5cc5b63fbf79b (patch) | |
tree | 276c0085c2997609bc5400aeb03138d07843bba4 | |
parent | 382d2d431d1f2080d9dae9baadaa00495d903c24 (diff) | |
download | c-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |