summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2007-06-11 21:06:11 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2007-06-11 21:06:11 +0000
commit0b07df0b82b9e16c72ef363a80abf187e7b8f22e (patch)
tree1da5096077a33b3ef34f33f86e8a4f17df6b658e
parent6102c371494c934fec68f845ced3dd9e52c5b5be (diff)
downloadopenvpn-0b07df0b82b9e16c72ef363a80abf187e7b8f22e.tar.gz
openvpn-0b07df0b82b9e16c72ef363a80abf187e7b8f22e.tar.xz
openvpn-0b07df0b82b9e16c72ef363a80abf187e7b8f22e.zip
Fixed a variable declaration that wasn't at the start
of a block. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2026 e7ae566f-a301-0410-adde-c780ea21d3b5
-rw-r--r--multi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/multi.c b/multi.c
index ee74a46..fa924f1 100644
--- a/multi.c
+++ b/multi.c
@@ -408,8 +408,10 @@ multi_client_disconnect_setenv (struct multi_context *m,
setenv_counter (mi->context.c2.es, "bytes_sent", mi->context.c2.link_write_bytes);
/* setenv connection duration */
- const unsigned int duration = (unsigned int) now - mi->created;
- setenv_unsigned (mi->context.c2.es, "time_duration", duration);
+ {
+ const unsigned int duration = (unsigned int) now - mi->created;
+ setenv_unsigned (mi->context.c2.es, "time_duration", duration);
+ }
}
static void