X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fnew.c;h=41d2ebf8cb6b7fb6ae9e21dac9186cbfae187b88;hb=5dd6771b28c257af405d7248639ed0e3bcdce38b;hp=4ff8c0496915af66a903418e614a1e6cb063c853;hpb=788c353a8bee07520ae1a1de6fb7bdcdf1f4f1c7;p=mmh diff --git a/uip/new.c b/uip/new.c index 4ff8c04..41d2ebf 100644 --- a/uip/new.c +++ b/uip/new.c @@ -4,8 +4,6 @@ * -- as fnext, move to next folder with unseen messages * -- as fprev, move to previous folder with unseen messages * -- as unseen, scan all unseen messages - * $Id$ - * * This code is Copyright (c) 2008, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -300,7 +298,7 @@ doit(char *cur, char *folders, char *sequences[]) struct node *first, *cur_node, *node, *last, *prev; size_t folder_len; int count, total = 0; - char *command, *sequences_s; + char *command = NULL, *sequences_s = NULL; if (cur == NULL || cur[0] == '\0') { cur = "inbox"; @@ -374,7 +372,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 +386,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;