From 40ff8d52fec555e2488f13d528a5192cb0b71f16 Mon Sep 17 00:00:00 2001 From: rob Date: Mon, 14 Aug 2017 03:15:28 +0000 Subject: Remove some dead logging code that was never used. Ok benno@ --- usr.sbin/ifstated/ifstated.c | 5 +---- usr.sbin/ifstated/ifstated.h | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'usr.sbin/ifstated') 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 @@ -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 -- cgit v1.2.3-59-g8ed1b