diff options
author | 2017-07-02 14:28:45 +0000 | |
---|---|---|
committer | 2017-07-02 14:28:45 +0000 | |
commit | 2f67262df3d11ec7b7896f94025bfac37c4728c5 (patch) | |
tree | 8d7495e13d1a6bb99179a917d8c2457d4aa3735f | |
parent | Rename one of the "always" variables to "body" for improved readability. (diff) | |
download | wireguard-openbsd-2f67262df3d11ec7b7896f94025bfac37c4728c5.tar.xz wireguard-openbsd-2f67262df3d11ec7b7896f94025bfac37c4728c5.zip |
Remove variable assignment in declaration and add whitespace to improve
readability. No functional change.
from Rob Pierce.
ok stsp@ and me
-rw-r--r-- | usr.sbin/ifstated/ifstated.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 <mpf@openbsd.org> @@ -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); |