mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 00:46:29 +00:00
use if instead of switch and avoid a warning
This commit is contained in:
5
repmgr.c
5
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"),
|
log_err(_("%s: too many command-line arguments (first extra is \"%s\")\n"),
|
||||||
progname, argv[optind]);
|
progname, argv[optind]);
|
||||||
usage();
|
usage();
|
||||||
|
|||||||
Reference in New Issue
Block a user