git » nmdb » commit bc9170c

Add SCTP options to getopt()

author Alberto Bertogli
2008-10-30 20:17:21 UTC
committer Alberto Bertogli
2008-10-30 20:17:21 UTC
parent 8967449df72ff19d43fab4a6bb7bf91903c338b0

Add SCTP options to getopt()

The parsing was ready, but the options were not passed to getopt(). This
patch adds the two SCTP-related options (-s and -S) to the getopt()
parameter.

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

nmdb/main.c +1 -1

diff --git a/nmdb/main.c b/nmdb/main.c
index a07ac62..79d92b4 100644
--- a/nmdb/main.c
+++ b/nmdb/main.c
@@ -69,7 +69,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:t:T:u:U:c:o:fph?")) != -1) {
+	while ((c = getopt(argc, argv, "d:l:L:t:T:u:U:s:S:c:o:fph?")) != -1) {
 		switch(c) {
 		case 'd':
 			free(settings.dbname);