From 2ff0ce2d0adfd035f26325a5b5204852ee235755 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 26 Oct 2009 09:59:54 +0000 Subject: [PATCH] Minor: Improved memory layout/alignment of struct dhcp for 32-bit platforms --- src/include/lwip/dhcp.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/lwip/dhcp.h b/src/include/lwip/dhcp.h index b4bc8067..db37e884 100644 --- a/src/include/lwip/dhcp.h +++ b/src/include/lwip/dhcp.h @@ -24,10 +24,6 @@ extern "C" { struct dhcp { - /** current DHCP state machine state */ - u8_t state; - /** retries of current request */ - u8_t tries; /** transaction identifier of last sent request */ u32_t xid; /** our connection to the DHCP server */ @@ -38,6 +34,10 @@ struct dhcp void *options_in; /** ingoing msg options length */ u16_t options_in_len; + /** current DHCP state machine state */ + u8_t state; + /** retries of current request */ + u8_t tries; struct pbuf *p_out; /* pbuf of outcoming msg */ struct dhcp_msg *msg_out; /* outgoing msg */