From: David Levine Date: Wed, 30 Dec 2009 01:41:47 +0000 (+0000) Subject: * uip/new.c: cast folder_len to int to avoid warning on X-Git-Tag: PRE_POSIX_CONVERSION~6 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=7e3a3c499d1637d633d385c1058947c02676e3c5;p=mmh * uip/new.c: cast folder_len to int to avoid warning on 64-bit about passing a size_t to an int conversion specifier. --- diff --git a/ChangeLog b/ChangeLog index f5c605c..a0528eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-12-29 David Levine + + * uip/new.c: cast folder_len to int to avoid warning on + 64-bit about passing a size_t to an int conversion specifier. + 2009-12-25 David Levine * uip/inc.c: gcc 4.4.1 noticed that maildir could have been diff --git a/uip/new.c b/uip/new.c index 4ff8c04..81a1afb 100644 --- a/uip/new.c +++ b/uip/new.c @@ -374,7 +374,7 @@ doit(char *cur, char *folders, char *sequences[]) total += count; printf("%-*s %6d.%c %s\n", - folder_len, node->n_name, + (int) folder_len, node->n_name, count, (strcmp(node->n_name, cur) == 0 ? '*' : ' '), node->n_field); @@ -388,7 +388,7 @@ doit(char *cur, char *folders, char *sequences[]) } if (run_mode == NEW) { - printf("%-*s %6d.\n", folder_len, " total", total); + printf("%-*s %6d.\n", (int) folder_len, " total", total); } return cur_node;