diff mbox

[3/6] nsdbparms: Remove vestigial dash switches for position arguments

Message ID 20151023190725.101462.40309.stgit@seurat.1015granger.net
State Accepted
Headers show

Commit Message

Chuck Lever Oct. 23, 2015, 7:07 p.m. UTC
Finish cleaning up places where dash switches were replaced with
the use of positional command line arguments.

Coverity: 126106

Fixes: aad8b7daebca ("nsdbparams: Use positional parameters . . .")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---
 src/nsdbparams/update.c |    4 ----
 1 file changed, 4 deletions(-)
diff mbox

Patch

diff --git a/src/nsdbparams/update.c b/src/nsdbparams/update.c
index 2d1526d..0c3ec7c 100644
--- a/src/nsdbparams/update.c
+++ b/src/nsdbparams/update.c
@@ -57,7 +57,6 @@  static const struct option nsdbparams_update_longopts[] = {
 	{ "gid", 1, NULL, 'g', },
 	{ "help", 0, NULL, '?', },
 	{ "nce", 1, NULL, 'e', },
-	{ "nsdbname", 1, NULL, 'l', },
 	{ "nsdbport", 1, NULL, 'r', },
 	{ "referral", 1, NULL, 'R', },
 	{ "sectype", 1, NULL, 't', },
@@ -311,9 +310,6 @@  nsdbparams_update(const char *progname, int argc, char **argv)
 		case '?':
 			nsdbparams_update_usage(progname);
 			goto out;
-		case 'l':
-			nsdbname = optarg;
-			break;
 		case 'r':
 			if (!nsdb_parse_port_string(optarg, &nsdbport)) {
 				xlog(L_ERROR, "Bad port number: %s",