]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Declare variables prior to code so as to produce code that can be compiled
authorDavid Hankins <dhankins@isc.org>
Tue, 8 Jan 2008 17:51:01 +0000 (17:51 +0000)
committerDavid Hankins <dhankins@isc.org>
Tue, 8 Jan 2008 17:51:01 +0000 (17:51 +0000)
without C99 compliance.

server/mdb.c

index 0b99335ef3c8bd4466af7d6f5cc826c38d9e376d..ba42b6e903085c704289f28b1ff3955be7aa0307 100644 (file)
@@ -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)