From: David Hankins Date: Tue, 8 Jan 2008 17:51:01 +0000 (+0000) Subject: Declare variables prior to code so as to produce code that can be compiled X-Git-Tag: v4_1_0a1~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2574fdb165b6c29c5f5d924135bcc4efc8842575;p=thirdparty%2Fdhcp.git Declare variables prior to code so as to produce code that can be compiled without C99 compliance. --- diff --git a/server/mdb.c b/server/mdb.c index 0b99335ef..ba42b6e90 100644 --- a/server/mdb.c +++ b/server/mdb.c @@ -1051,6 +1051,7 @@ int supersede_lease (comp, lease, commit, propogate, pimmediate) int pimmediate; { struct lease *lp, **lq, *prev; + struct timeval tv; #if defined (FAILOVER_PROTOCOL) int do_pool_check = 0; @@ -1060,7 +1061,6 @@ int supersede_lease (comp, lease, commit, propogate, pimmediate) if (pimmediate && !commit) return 0; #endif - struct timeval tv; /* If there is no sample lease, just do the move. */ if (!lease)