lock(1): Use %jd for printing intmax_t.
authorSascha Wildner <saw@online.de>
Sat, 30 Mar 2013 12:20:58 +0000 (13:20 +0100)
committerSascha Wildner <saw@online.de>
Sat, 30 Mar 2013 12:20:58 +0000 (13:20 +0100)
usr.bin/lock/lock.c

index c3129eb..750ef67 100644 (file)
@@ -255,7 +255,7 @@ hi(int signo __unused)
                if (no_timeout) {
                        putchar('\n');
                } else {
-                       printf("timeout in %ld:%ld minutes\n",
+                       printf("timeout in %jd:%jd minutes\n",
                            (intmax_t)(nexttime - timval) / 60,
                            (intmax_t)(nexttime - timval) % 60);
                }