summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ifstated
diff options
context:
space:
mode:
authorrob <rob@openbsd.org>2017-08-14 03:15:28 +0000
committerrob <rob@openbsd.org>2017-08-14 03:15:28 +0000
commit40ff8d52fec555e2488f13d528a5192cb0b71f16 (patch)
treeb72acb8b9e993a65604193032b7dc1aa5f26d196 /usr.sbin/ifstated
parentdrm/mst: Avoid processing partially received up/down message transactions (diff)
downloadwireguard-openbsd-40ff8d52fec555e2488f13d528a5192cb0b71f16.tar.xz
wireguard-openbsd-40ff8d52fec555e2488f13d528a5192cb0b71f16.zip
Remove some dead logging code that was never used.
Ok benno@
Diffstat (limited to 'usr.sbin/ifstated')
-rw-r--r--usr.sbin/ifstated/ifstated.c5
-rw-r--r--usr.sbin/ifstated/ifstated.h4
2 files changed, 2 insertions, 7 deletions
diff --git a/usr.sbin/ifstated/ifstated.c b/usr.sbin/ifstated/ifstated.c
index d536da825e4..ba2b89f9321 100644
--- a/usr.sbin/ifstated/ifstated.c
+++ b/usr.sbin/ifstated/ifstated.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifstated.c,v 1.58 2017/08/08 14:09:38 rob Exp $ */
+/* $OpenBSD: ifstated.c,v 1.59 2017/08/14 03:15:28 rob Exp $ */
/*
* Copyright (c) 2004 Marco Pfatschbacher <mpf@openbsd.org>
@@ -656,9 +656,6 @@ remove_action(struct ifsd_action *action, struct ifsd_state *state)
return;
switch (action->type) {
- case IFSD_ACTION_LOG:
- free(action->act.logmessage);
- break;
case IFSD_ACTION_COMMAND:
free(action->act.command);
break;
diff --git a/usr.sbin/ifstated/ifstated.h b/usr.sbin/ifstated/ifstated.h
index 32cc462e253..8b35959ed65 100644
--- a/usr.sbin/ifstated/ifstated.h
+++ b/usr.sbin/ifstated/ifstated.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifstated.h,v 1.17 2017/07/23 13:48:18 deraadt Exp $ */
+/* $OpenBSD: ifstated.h,v 1.18 2017/08/14 03:15:28 rob Exp $ */
/*
* Copyright (c) 2004 Ryan McBride
@@ -63,7 +63,6 @@ struct ifsd_action {
TAILQ_ENTRY(ifsd_action) entries;
struct ifsd_action *parent;
union {
- char *logmessage;
char *command;
struct ifsd_state *nextstate;
char *statename;
@@ -73,7 +72,6 @@ struct ifsd_action {
} c;
} act;
u_int32_t type;
-#define IFSD_ACTION_LOG 0
#define IFSD_ACTION_COMMAND 1
#define IFSD_ACTION_CHANGESTATE 2
#define IFSD_ACTION_CONDITION 3