summaryrefslogtreecommitdiff
path: root/client/dhclient.c
diff options
context:
space:
mode:
authorMark Andrews <marka@isc.org>2011-04-04 23:09:43 +0000
committerMark Andrews <marka@isc.org>2011-04-04 23:09:43 +0000
commit1405aa2ddc30894b8c461edd18ae2fe14610b09b (patch)
tree20e66d9633241b12dd31110d01059de18f26d67c /client/dhclient.c
parentbea1769742a51bcb3525238842d76aedd267b613 (diff)
downloadisc-dhcp-1405aa2ddc30894b8c461edd18ae2fe14610b09b.tar.gz
move declartations to start of block
Diffstat (limited to 'client/dhclient.c')
-rw-r--r--client/dhclient.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/dhclient.c b/client/dhclient.c
index 296dd1e1..d30bd0b3 100644
--- a/client/dhclient.c
+++ b/client/dhclient.c
@@ -3039,10 +3039,11 @@ void client_option_envadd (struct option_cache *oc,
if (dhcp_option_ev_name (name, sizeof name,
oc->option)) {
const char *value;
+ size_t length;
value = pretty_print_option(oc->option,
data.data,
data.len, 0, 0);
- size_t length = strlen(value);
+ length = strlen(value);
if (check_option_values(oc->option->universe,
oc->option->code,