[OpenWrt-Devel] fix missing -p command line argument
diff mbox

Message ID 1423648967-2579-2-git-send-email-alejandro.enrique@fon.com
State Accepted
Headers show

Commit Message

Alejandro Enrique Feb. 11, 2015, 10:02 a.m. UTC
Option -p was not being accepted as it was missing in getopt parameter
list

Signed-off-by: Alejandro Enrique <alejandro.enrique@fon.com>
---
 main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox

diff --git a/main.c b/main.c
index 2e34954..a78076c 100644
--- a/main.c
+++ b/main.c
@@ -719,7 +719,7 @@  int main(int argc, char **argv)
 	local_route_table = 0;
 	uloop_init();
 
-	while ((ch = getopt(argc, argv, "I:i:t:BDdT:G:R:L:")) != -1) {
+	while ((ch = getopt(argc, argv, "I:i:t:p:BDdT:G:R:L:")) != -1) {
 		switch(ch) {
 		case 'I':
 			managed = true;