Skip to content
Snippets Groups Projects
Commit 508f92ce authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Use correct check for wire_server_dev.

Sponsored by:	Netflix
parent 766fe492
No related branches found
No related tags found
No related merge requests found
...@@ -330,11 +330,6 @@ void finalize_config(struct config *config) ...@@ -330,11 +330,6 @@ void finalize_config(struct config *config)
die("wire_server_ip not specified\n"); die("wire_server_ip not specified\n");
} }
} }
if (config->is_wire_server) {
if (config->wire_server_device == NULL) {
die("%s: wire_server_dev not specified\n");
}
}
} }
/* Expect that arg is comma-delimited, allowing for spaces. */ /* Expect that arg is comma-delimited, allowing for spaces. */
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "types.h" #include "types.h"
/* Enable this to get debug logging. */ /* Enable this to get debug logging. */
#define DEBUG_LOGGING 0 #define DEBUG_LOGGING 1
/* Use a gcc variadic macro to conditionally compile debug printing. */ /* Use a gcc variadic macro to conditionally compile debug printing. */
#define DEBUGP(...) \ #define DEBUGP(...) \
......
...@@ -87,7 +87,14 @@ int main(int argc, char *argv[]) ...@@ -87,7 +87,14 @@ int main(int argc, char *argv[])
show_usage(); show_usage();
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
if (config.is_wire_server) {
if (config.wire_server_device == NULL) {
fprintf(stderr,
"error: wire_server_dev must be specified\n");
show_usage();
exit(EXIT_FAILURE);
}
}
run_wire_server(&config); run_wire_server(&config);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment