diff options
author | 2007-09-07 08:31:36 +0000 | |
---|---|---|
committer | 2007-09-07 08:31:36 +0000 | |
commit | 72f1a27405b99d63b591761964acc3034f4de362 (patch) | |
tree | 71fd9ab9d72377714648c02ea81c8e1713fe1f6d | |
parent | add an interface to dump running relay sessions to the control socket (diff) | |
download | wireguard-openbsd-72f1a27405b99d63b591761964acc3034f4de362.tar.xz wireguard-openbsd-72f1a27405b99d63b591761964acc3034f4de362.zip |
simple style change in the switch
-rw-r--r-- | usr.sbin/hoststatectl/hoststatectl.c | 8 | ||||
-rw-r--r-- | usr.sbin/relayctl/relayctl.c | 8 |
2 files changed, 4 insertions, 12 deletions
diff --git a/usr.sbin/hoststatectl/hoststatectl.c b/usr.sbin/hoststatectl/hoststatectl.c index 5b1c7421c66..cd8dafc9772 100644 --- a/usr.sbin/hoststatectl/hoststatectl.c +++ b/usr.sbin/hoststatectl/hoststatectl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hoststatectl.c,v 1.20 2007/06/12 18:09:00 pyr Exp $ */ +/* $OpenBSD: hoststatectl.c,v 1.21 2007/09/07 08:31:36 reyk Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -198,13 +198,9 @@ main(int argc, char *argv[]) break; switch (res->action) { case SHOW_SUM: - done = show_summary_msg(&imsg, SHOW_SUM); - break; case SHOW_HOSTS: - done = show_summary_msg(&imsg, SHOW_HOSTS); - break; case SHOW_RELAYS: - done = show_summary_msg(&imsg, SHOW_RELAYS); + done = show_summary_msg(&imsg, res->action); break; case SERV_DISABLE: case SERV_ENABLE: diff --git a/usr.sbin/relayctl/relayctl.c b/usr.sbin/relayctl/relayctl.c index 0dfbeb7eadf..9c39215729e 100644 --- a/usr.sbin/relayctl/relayctl.c +++ b/usr.sbin/relayctl/relayctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relayctl.c,v 1.20 2007/06/12 18:09:00 pyr Exp $ */ +/* $OpenBSD: relayctl.c,v 1.21 2007/09/07 08:31:36 reyk Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -198,13 +198,9 @@ main(int argc, char *argv[]) break; switch (res->action) { case SHOW_SUM: - done = show_summary_msg(&imsg, SHOW_SUM); - break; case SHOW_HOSTS: - done = show_summary_msg(&imsg, SHOW_HOSTS); - break; case SHOW_RELAYS: - done = show_summary_msg(&imsg, SHOW_RELAYS); + done = show_summary_msg(&imsg, res->action); break; case SERV_DISABLE: case SERV_ENABLE: |