Correct the plural in "1 file to consider." (Greg Louis)
authorMartin Pool <mbp@samba.org>
Thu, 14 Mar 2002 12:00:12 +0000 (12:00 +0000)
committerMartin Pool <mbp@samba.org>
Thu, 14 Mar 2002 12:00:12 +0000 (12:00 +0000)
flist.c

diff --git a/flist.c b/flist.c
index 151ae87..045c2f2 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -101,12 +101,13 @@ static void finish_filelist_progress(const struct file_list *flist)
 {
        if (do_progress) {
                /* This overwrites the progress line */
-               rprintf(FINFO, "%d files to consider\n", flist->count);
-       } else
+               rprintf(FINFO, "%d file%sto consider\n",
+                       flist->count, flist->count == 1 ? " " : "s ");
+       } else {
                rprintf(FINFO, "done\n");
+       }
 }
 
-
 void show_flist_stats(void)
 {
        /* Nothing yet */