aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-10-13 15:48:39 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-10-13 15:48:39 +0200
commit06c9f23365611e19a31205d3e480ab29d4b481dd (patch)
tree8931e1d2f7174a663ccd10dd35474257caf4f797
parentbe6bbf6056ac6fdedb224646bea6be3c7be15267 (diff)
downloadmblaze-06c9f23365611e19a31205d3e480ab29d4b481dd.tar.gz
mshow: use %ld for longs
-rw-r--r--mshow.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mshow.c b/mshow.c
index db548d7..f50ef52 100644
--- a/mshow.c
+++ b/mshow.c
@@ -582,7 +582,7 @@ print_date_header(char *v)
z = d / (60*60*24*7*52);
d = d % (60*60*24*7*52);
if (z > 0) {
- printf("%d year%s", z, z > 1 ? "s" : "");
+ printf("%ld year%s", z, z > 1 ? "s" : "");
if (!--p) break;
printf(", ");
}
@@ -591,7 +591,7 @@ print_date_header(char *v)
z = d / (60*60*24*7);
d = d % (60*60*24*7);
if (z > 0) {
- printf("%d week%s", z, z > 1 ? "s" : "");
+ printf("%ld week%s", z, z > 1 ? "s" : "");
if (!--p) break;
printf(", ");
}
@@ -600,7 +600,7 @@ print_date_header(char *v)
z = d / (60*60*24);
d = d % (60*60*24);
if (z > 0) {
- printf("%d day%s", z, z > 1 ? "s" : "");
+ printf("%ld day%s", z, z > 1 ? "s" : "");
if (!--p) break;
printf(", ");
}
@@ -609,7 +609,7 @@ print_date_header(char *v)
z = d / (60*60);
d = d % (60*60);
if (z > 0) {
- printf("%d hour%s", z, z > 1 ? "s" : "");
+ printf("%ld hour%s", z, z > 1 ? "s" : "");
if (!--p) break;
printf(", ");
}
@@ -618,14 +618,14 @@ print_date_header(char *v)
z = d / (60);
d = d % (60);
if (z > 0) {
- printf("%d minute%s", z, z > 1 ? "s" : "");
+ printf("%ld minute%s", z, z > 1 ? "s" : "");
if (!--p) break;
printf(", ");
}
/* FALL THROUGH */
case 's':
z = d;
- printf("%d second%s", z, z > 1 ? "s" : "");
+ printf("%ld second%s", z, z > 1 ? "s" : "");
}
if (t < now)