From 9acfd23b8707b49d642b3dc3f1ea531cba88604c Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Mon, 3 Dec 2018 09:04:54 +0000 Subject: [PATCH] fix pluralization --- zpm-syncfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zpm-syncfs.c b/zpm-syncfs.c index 51b010e..68f2e42 100644 --- a/zpm-syncfs.c +++ b/zpm-syncfs.c @@ -1475,7 +1475,7 @@ int main(int ac, char **av) { fprintf(stderr, "file ops: %d\n", conf.ops_total); if (conf.ops_remove > 0) { if (conf.verbose) { - fprintf(stderr, "removing %d files\n", conf.ops_remove); + fprintf(stderr, "removing %d file%s\n", conf.ops_remove, conf.ops_remove > 0 ? "s" : ""); } conf.reverse = 1; conf.ops_completed = 0; @@ -1489,7 +1489,7 @@ int main(int ac, char **av) { if (conf.ops_update > 0) { if (conf.verbose) { - fprintf(stderr, "updating %d files\n", conf.ops_update); + fprintf(stderr, "updating %d file%s\n", conf.ops_update, conf.ops_update > 0 ? "s" : ""); } conf.reverse = 0; conf.ops_completed = 0; @@ -1503,7 +1503,7 @@ int main(int ac, char **av) { if (conf.ops_install > 0) { if (conf.verbose) { - fprintf(stderr, "installing %d files\n", conf.ops_install); + fprintf(stderr, "installing %d file%s\n", conf.ops_install, conf.ops_install > 0 ? "s" : ""); } conf.reverse = 0; conf.ops_completed = 0; -- 2.40.0