X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/94f8f9eb1b71847a08ccb7f6c7b5f1bfebb44c10..ef1ba39e8dae81091b6c3e73e72825ef6edea3c6:/uip/folder.c diff --git a/uip/folder.c b/uip/folder.c index c077f7c2..7e00a812 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -118,8 +118,7 @@ main (int argc, char **argv) * If program was invoked with name ending * in `s', then add switch `-all'. */ - if (argv[0][strlen (argv[0]) - 1] == 's') - all = 1; + all = HasSuffixC(argv[0], 's'); arguments = getarguments (invo_name, argc, argv, 1); argp = arguments; @@ -314,7 +313,7 @@ main (int argc, char **argv) printf (" %s", *ap); free (dp); } - printf ("\n"); + putchar('\n'); if (!printsw) done (0); @@ -592,7 +591,7 @@ print_folders (void) */ if (ftotal > 0 || (all && !fshort && ftotal >= 0)) { if (all) - printf ("\n"); + putchar('\n'); printf ("TOTAL = %d message%c in %d folder%s.\n", total_msgs, total_msgs != 1 ? 's' : ' ', total_folders, total_folders != 1 ? "s" : "");