aboutsummaryrefslogtreecommitdiffstats
path: root/wg_dynamic_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'wg_dynamic_server.c')
-rw-r--r--wg_dynamic_server.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/wg_dynamic_server.c b/wg_dynamic_server.c
index a8e2924..045de9d 100644
--- a/wg_dynamic_server.c
+++ b/wg_dynamic_server.c
@@ -3,16 +3,13 @@
* Copyright (C) 2018 Wireguard LLC
*/
+#include "server.h"o
+
#include <stdlib.h>
#include <stdio.h>
const char *PROG_NAME;
-/* TODO: break this function out into another file when it gets big */
-static void setup_server(char *interface)
-{
-}
-
static void show_usage()
{
fprintf(stderr, "Usage: %s <interface>\n\n", PROG_NAME);
@@ -27,7 +24,10 @@ int main(int argc, char *argv[])
return EXIT_FAILURE;
}
- setup_server(argv[1]);
+ if (setup_server(argv[1]) < 0) {
+ perror("error setting up server");
+ return EXIT_FAILURE;
+ }
return EXIT_SUCCESS;
}