From 0fdcce047732e23372dd921ea90bed8388864c2c Mon Sep 17 00:00:00 2001 From: Christian Kruse Date: Wed, 22 Jan 2014 15:12:29 +0100 Subject: [PATCH] use if instead of switch and avoid a warning --- repmgr.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/repmgr.c b/repmgr.c index 32ada981..75afa262 100644 --- a/repmgr.c +++ b/repmgr.c @@ -268,11 +268,8 @@ main(int argc, char **argv) } } - switch (optind < argc) + if (optind < argc) { - case 0: - break; - default: log_err(_("%s: too many command-line arguments (first extra is \"%s\")\n"), progname, argv[optind]); usage();