From: james Date: Mon, 11 Jun 2007 21:06:11 +0000 (+0000) Subject: Fixed a variable declaration that wasn't at the start X-Git-Tag: v2.1_rc5~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b07df0b82b9e16c72ef363a80abf187e7b8f22e;p=thirdparty%2Fopenvpn.git 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 --- diff --git a/multi.c b/multi.c index ee74a4679..fa924f1bd 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