mtpd: get rid of the separator of pppd arguments.
Change-Id: I0ebcac6f051dae63531afacdd62d7520a94f18d1
diff --git a/pptp.c b/pptp.c
index ccd0faa..6c67afc 100644
--- a/pptp.c
+++ b/pptp.c
@@ -213,12 +213,9 @@
return 0;
}
-static int pptp_connect(int argc, char **argv)
+static int pptp_connect(char **arguments)
{
- if (argc < 2) {
- return -USAGE_ERROR;
- }
- create_socket(AF_UNSPEC, SOCK_STREAM, argv[0], argv[1]);
+ create_socket(AF_UNSPEC, SOCK_STREAM, arguments[0], arguments[1]);
log_print(DEBUG, "Sending SCCRQ");
state = SCCRQ;
@@ -413,6 +410,7 @@
struct protocol pptp = {
.name = "pptp",
+ .arguments = 2,
.usage = "<server> <port>",
.connect = pptp_connect,
.process = pptp_process,