2008-03-04 Kieran Mansley (contributions by others)

* Numerous small compiler error/warning fixes from contributions to
    mailing list after 1.3.0 release candidate made.
This commit is contained in:
kieranm 2008-03-04 13:41:23 +00:00
parent faca23b984
commit 42344ce20c
6 changed files with 17 additions and 4 deletions

View File

@ -596,6 +596,10 @@ HISTORY
++ Bug fixes:
2008-03-04 Kieran Mansley (contributions by others)
* Numerous small compiler error/warning fixes from contributions to
mailing list after 1.3.0 release candidate made.
2008-01-25 Cui hengbin (integrated by Frédéric Bernon)
* dns.c: Fix bug #22108 "DNS problem" caused by unaligned structures.

View File

@ -100,7 +100,9 @@ static err_t dhcp_discover(struct netif *netif);
static err_t dhcp_select(struct netif *netif);
static void dhcp_check(struct netif *netif);
static void dhcp_bind(struct netif *netif);
#if DHCP_DOES_ARP_CHECK
static err_t dhcp_decline(struct netif *netif);
#endif
static err_t dhcp_rebind(struct netif *netif);
static void dhcp_set_state(struct dhcp *dhcp, u8_t new_state);

View File

@ -36,6 +36,8 @@
*
*/
#include <string.h>
#include "lwip/opt.h"
#include "lwip/inet_chksum.h"

View File

@ -85,7 +85,7 @@
#define ARPH_PROTOLEN_SET(hdr, len) (hdr)->_hwlen_protolen = htons((len) | (ARPH_HWLEN(hdr) << 8))
enum etharp_state {
ETHARP_STATE_EMPTY,
ETHARP_STATE_EMPTY = 0,
ETHARP_STATE_PENDING,
ETHARP_STATE_STABLE
};
@ -129,9 +129,6 @@ static err_t update_arp_entry(struct netif *netif, struct ip_addr *ipaddr, struc
/* Some checks, instead of etharp_init(): */
#if ETHARP_STATE_EMPTY != 0
#error ETHARP_STATE_EMPTY must be 0 to ensure correct initialization value!
#endif
#if (LWIP_ARP && (ARP_TABLE_SIZE > 0x7f))
#error "If you want to use ARP, ARP_TABLE_SIZE must fit in an s8_t, so, you have to reduce it in your lwipopts.h"
#endif

View File

@ -49,6 +49,10 @@
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "lwip/opt.h"
#if PPP_SUPPORT
#include "ppp.h"
#include "randm.h"
#include "magic.h"
@ -74,3 +78,5 @@ u32_t magic()
{
return avRandom();
}
#endif /* PPP_SUPPORT */

View File

@ -83,6 +83,8 @@
#if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */
#include "lwip/ip.h" /* for ip_input() */
#include "ppp.h"
#include "pppdebug.h"