From 7e3a3c499d1637d633d385c1058947c02676e3c5 Mon Sep 17 00:00:00 2001 From: David Levine Date: Wed, 30 Dec 2009 01:41:47 +0000 Subject: [PATCH] * uip/new.c: cast folder_len to int to avoid warning on 64-bit about passing a size_t to an int conversion specifier. --- ChangeLog | 5 +++++ uip/new.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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; -- 1.7.10.4