From 05ffab94be8da943cffb8fb30d7073ab78aef94c Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 3 Sep 2013 15:43:07 +0200 Subject: [PATCH] Opt: Deleted extra newlines after failure messages --- ucw/opt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ucw/opt.c b/ucw/opt.c index 454fbd94..e2393ea0 100644 --- a/ucw/opt.c +++ b/ucw/opt.c @@ -545,16 +545,16 @@ void opt_parse(const struct opt_section * options, char ** argv) { continue; if (!pre->shortopt[i]->count && (pre->shortopt[i]->flags & OPT_REQUIRED)) if (i < 256) - opt_failure("Required option -%c not found.\n", pre->shortopt[i]->item->letter); + opt_failure("Required option -%c not found.", pre->shortopt[i]->item->letter); else - opt_failure("Required positional argument #%d not found.\n", (i > 256) ? pre->shortopt[i]->item->letter-256 : opt_positional_max+1); + opt_failure("Required positional argument #%d not found.", (i > 256) ? pre->shortopt[i]->item->letter-256 : opt_positional_max+1); } for (int i=0;iopt_count;i++) { if (!pre->opts[i]) continue; if (!pre->opts[i]->count && (pre->opts[i]->flags & OPT_REQUIRED)) - opt_failure("Required option --%s not found.\n", pre->opts[i]->item->name); + opt_failure("Required option --%s not found.", pre->opts[i]->item->name); } } -- 2.39.2