aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/wg.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/wg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wg.c b/src/wg.c
index b9952eb..aed70b6 100644
--- a/src/wg.c
+++ b/src/wg.c
@@ -14,7 +14,7 @@ const char *PROG_NAME;
static const struct {
const char *subcommand;
- int (*function)(int, char**);
+ int (*function)(int, const char**);
const char *description;
} subcommands[] = {
{ "show", show_main, "Shows the current configuration and device information" },
@@ -37,7 +37,7 @@ static void show_usage(FILE *file)
fprintf(file, "You may pass `--help' to any of these subcommands to view usage.\n");
}
-int main(int argc, char *argv[])
+int main(int argc, const char *argv[])
{
PROG_NAME = argv[0];
@@ -51,7 +51,7 @@ int main(int argc, char *argv[])
}
if (argc == 1) {
- static char *new_argv[] = { "show", NULL };
+ static const char *new_argv[] = { "show", NULL };
return show_main(1, new_argv);
}