summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpyr <pyr@openbsd.org>2007-05-29 22:41:48 +0000
committerpyr <pyr@openbsd.org>2007-05-29 22:41:48 +0000
commit2ec230749e4a16ea618b6c4e35972d45eca09930 (patch)
tree32d6c2334083ea7f4c9ba25185927964f91f3ccb
parentfix some list items; from andres (diff)
downloadwireguard-openbsd-2ec230749e4a16ea618b6c4e35972d45eca09930.tar.xz
wireguard-openbsd-2ec230749e4a16ea618b6c4e35972d45eca09930.zip
teach hoststatectl's parser about reload. the code to handle it is
already there. of course this is a dummy for now.
-rw-r--r--usr.sbin/hoststatectl/parser.c3
-rw-r--r--usr.sbin/relayctl/parser.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/hoststatectl/parser.c b/usr.sbin/hoststatectl/parser.c
index 3490043d865..70983b0d64a 100644
--- a/usr.sbin/hoststatectl/parser.c
+++ b/usr.sbin/hoststatectl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.10 2007/02/22 03:32:40 reyk Exp $ */
+/* $OpenBSD: parser.c,v 1.11 2007/05/29 22:41:48 pyr Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -66,6 +66,7 @@ static const struct token t_host_id[];
static const struct token t_main[] = {
{KEYWORD, "monitor", MONITOR, NULL},
{KEYWORD, "show", NULL, t_show},
+ {KEYWORD, "reload", RELOAD, NULL},
{KEYWORD, "stop", SHUTDOWN, NULL},
{KEYWORD, "service", NONE, t_service},
{KEYWORD, "table", NONE, t_table},
diff --git a/usr.sbin/relayctl/parser.c b/usr.sbin/relayctl/parser.c
index 3490043d865..70983b0d64a 100644
--- a/usr.sbin/relayctl/parser.c
+++ b/usr.sbin/relayctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.10 2007/02/22 03:32:40 reyk Exp $ */
+/* $OpenBSD: parser.c,v 1.11 2007/05/29 22:41:48 pyr Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -66,6 +66,7 @@ static const struct token t_host_id[];
static const struct token t_main[] = {
{KEYWORD, "monitor", MONITOR, NULL},
{KEYWORD, "show", NULL, t_show},
+ {KEYWORD, "reload", RELOAD, NULL},
{KEYWORD, "stop", SHUTDOWN, NULL},
{KEYWORD, "service", NONE, t_service},
{KEYWORD, "table", NONE, t_table},