mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 06c9f23365611e19a31205d3e480ab29d4b481dd
parent be6bbf6056ac6fdedb224646bea6be3c7be15267
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Fri, 13 Oct 2017 15:48:39 +0200

mshow: use %ld for longs

Diffstat:
mshow.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 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)