Skip to content
Snippets Groups Projects
Commit 6a59af42 authored by Andy Green's avatar Andy Green
Browse files

test-app: remove -r resource path

parent 95f3eb29
No related branches found
No related tags found
No related merge requests found
...@@ -317,7 +317,6 @@ static struct option options[] = { ...@@ -317,7 +317,6 @@ static struct option options[] = {
#ifndef LWS_NO_DAEMONIZE #ifndef LWS_NO_DAEMONIZE
{ "daemonize", no_argument, NULL, 'D' }, { "daemonize", no_argument, NULL, 'D' },
#endif #endif
{ "resource_path", required_argument, NULL, 'r' },
{ "pingpong-secs", required_argument, NULL, 'P' }, { "pingpong-secs", required_argument, NULL, 'P' },
{ NULL, 0, 0, 0 } { NULL, 0, 0, 0 }
}; };
...@@ -351,7 +350,7 @@ int main(int argc, char **argv) ...@@ -351,7 +350,7 @@ int main(int argc, char **argv)
info.port = 7681; info.port = 7681;
while (n >= 0) { while (n >= 0) {
n = getopt_long(argc, argv, "eci:hsap:d:Dr:C:K:A:R:vu:g:P:kU:n", options, NULL); n = getopt_long(argc, argv, "eci:hsap:d:DC:K:A:R:vu:g:P:kU:n", options, NULL);
if (n < 0) if (n < 0)
continue; continue;
switch (n) { switch (n) {
...@@ -411,10 +410,6 @@ int main(int argc, char **argv) ...@@ -411,10 +410,6 @@ int main(int argc, char **argv)
"client after 50 dumb increments" "client after 50 dumb increments"
"and suppresses lws_mirror spam\n"); "and suppresses lws_mirror spam\n");
break; break;
case 'r':
resource_path = optarg;
printf("Setting resource path to \"%s\"\n", resource_path);
break;
case 'C': case 'C':
lws_strncpy(cert_path, optarg, sizeof(cert_path)); lws_strncpy(cert_path, optarg, sizeof(cert_path));
break; break;
...@@ -443,8 +438,7 @@ int main(int argc, char **argv) ...@@ -443,8 +438,7 @@ int main(int argc, char **argv)
case 'h': case 'h':
fprintf(stderr, "Usage: test-server " fprintf(stderr, "Usage: test-server "
"[--port=<p>] [--ssl] " "[--port=<p>] [--ssl] "
"[-d <log bitfield>] " "[-d <log bitfield>]\n");
"[--resource_path <path>]\n");
exit(1); exit(1);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment