From: benno Date: Sun, 2 Jul 2017 14:28:45 +0000 (+0000) Subject: Remove variable assignment in declaration and add whitespace to improve X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2f67262df3d11ec7b7896f94025bfac37c4728c5;p=openbsd Remove variable assignment in declaration and add whitespace to improve readability. No functional change. from Rob Pierce. ok stsp@ and me --- diff --git a/usr.sbin/ifstated/ifstated.c b/usr.sbin/ifstated/ifstated.c index ff2ed984fae..9cc672b659e 100644 --- a/usr.sbin/ifstated/ifstated.c +++ b/usr.sbin/ifstated/ifstated.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifstated.c,v 1.46 2017/07/02 14:27:30 benno Exp $ */ +/* $OpenBSD: ifstated.c,v 1.47 2017/07/02 14:28:45 benno Exp $ */ /* * Copyright (c) 2004 Marco Pfatschbacher @@ -527,7 +527,9 @@ adjust_expressions(struct ifsd_expression_list *expressions, int depth) void eval_state(struct ifsd_state *state) { - struct ifsd_external *external = TAILQ_FIRST(&state->external_tests); + struct ifsd_external *external; + + external = TAILQ_FIRST(&state->external_tests); if (external == NULL || external->lastexec >= state->entered || external->lastexec == 0) { do_action(state->body);