On 6 July 2017 02:11:03 BST, Rob Pierce <r...@2keys.ca> wrote:
>This code has been here since version 1.1/1.2, but never used.
>
>Rob
>
>Index: ifstated.c
>===================================================================
>RCS file: /cvs/src/usr.sbin/ifstated/ifstated.c,v
>retrieving revision 1.50
>diff -u -p -r1.50 ifstated.c
>--- ifstated.c 4 Jul 2017 21:09:52 -0000       1.50
>+++ ifstated.c 6 Jul 2017 01:04:40 -0000
>@@ -656,9 +656,6 @@ remove_action(struct ifsd_action *action
>               return;
> 
>       switch (action->type) {
>-      case IFSD_ACTION_LOG:
>-              free(action->act.logmessage);
>-              break;
>       case IFSD_ACTION_COMMAND:
>               free(action->act.command);
>               break;
>
>Index: ifstated.h
>===================================================================
>RCS file: /cvs/src/usr.sbin/ifstated/ifstated.h,v
>retrieving revision 1.16
>diff -u -p -r1.16 ifstated.h
>--- ifstated.h 4 Jul 2017 21:04:14 -0000       1.16
>+++ ifstated.h 6 Jul 2017 01:04:40 -0000
>@@ -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

Reply via email to