diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-10-06 13:15:28 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-10-06 13:15:28 +0200 |
commit | 5f45b7d53361bd32ce390e12f814660a98f86aa9 (patch) | |
tree | 53612a69e99fcb3c30392e9b682da3b0ff844f3e /mshow.c | |
parent | ce9ac3aff4bd2fe58132c3ec194269abe4fda4a7 (diff) | |
download | mblaze-5f45b7d53361bd32ce390e12f814660a98f86aa9.tar.gz mblaze-5f45b7d53361bd32ce390e12f814660a98f86aa9.tar.xz mblaze-5f45b7d53361bd32ce390e12f814660a98f86aa9.zip |
use appropriate integer types
Mainly found with clang -Wconversion -Wshorten-64-to-32.
Diffstat (limited to 'mshow.c')
-rw-r--r-- | mshow.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mshow.c b/mshow.c index eff8c76..5f24d75 100644 --- a/mshow.c +++ b/mshow.c @@ -45,7 +45,7 @@ printable(int c) return (unsigned)c-0x20 < 0x5f; } -int +size_t print_ascii(char *body, size_t bodylen) { if (safe_output) { @@ -567,7 +567,7 @@ print_date_header(char *v) printf(" ("); time_t d = t < now ? now - t : t - now; - int l; + char l; if (d > 60*60*24*7*52) l = 'y'; else if (d > 60*60*24*7) l = 'w'; else if (d > 60*60*24) l = 'd'; @@ -576,7 +576,7 @@ print_date_header(char *v) else l = 's'; int p = 3; - int z; + long z; switch (l) { case 'y': z = d / (60*60*24*7*52); |