git » nmdb » commit dbf58df

Fix getopt() string: add missing parameters.

author Alberto Bertogli
2007-07-25 14:21:42 UTC
committer Alberto Bertogli
2007-07-25 14:21:54 UTC
parent bb96201942c188dce840150e2b5b254eb4200978

Fix getopt() string: add missing parameters.

TCP and UDP options were handled in the switch but never added to the getopt
string. Fix this by adding them.

Signed-off-by: Alberto Bertogli <albertito@gmail.com>

nmdb/main.c +1 -1

diff --git a/nmdb/main.c b/nmdb/main.c
index 4e75eb7..11935d2 100644
--- a/nmdb/main.c
+++ b/nmdb/main.c
@@ -60,7 +60,7 @@ static int load_settings(int argc, char **argv)
 	settings.dbname = malloc(strlen(DEFDBNAME) + 1);
 	strcpy(settings.dbname, DEFDBNAME);
 
-	while ((c = getopt(argc, argv, "d:l:L:a:P:c:fph?")) != -1) {
+	while ((c = getopt(argc, argv, "d:l:L:t:T:u:U:c:fph?")) != -1) {
 		switch(c) {
 		case 'd':
 			free(settings.dbname);