diff --git a/src/api/sockets.c b/src/api/sockets.c index f7bfbdb1..19381e3d 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -1303,7 +1303,7 @@ int lwip_setsockopt (int s, int level, int optname, const void *optval, socklen_ LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_TCP, TCP_NODELAY) -> %s\n", s, (*(int *)optval)?"on":"off") ); break; case TCP_KEEPALIVE: - sock->conn->pcb.tcp->keepalive = (u32_t)(*(int*)optval);; + sock->conn->pcb.tcp->keepalive = (u32_t)(*(int*)optval); LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_TCP, TCP_KEEPALIVE) -> %u\n", s, sock->conn->pcb.tcp->keepalive)); break; } /* switch */ diff --git a/src/core/raw.c b/src/core/raw.c index 73aa37ef..598921c4 100644 --- a/src/core/raw.c +++ b/src/core/raw.c @@ -160,7 +160,7 @@ raw_send_payload(struct raw_pcb *pcb, struct pbuf *p, struct ip_addr *ipaddr) LWIP_DEBUGF(UDP_DEBUG | DBG_TRACE | 3, ("raw_send_payload\n")); if ((netif = ip_route(ipaddr)) == NULL) { - LWIP_DEBUGF(UDP_DEBUG | 1, ("raw_send_payload: No route to 0x%lx\n", ipaddr)); + LWIP_DEBUGF(UDP_DEBUG | 1, ("raw_send_payload: No route to 0x%lx\n", ipaddr->addr)); #ifdef RAW_STATS /* ++lwip_stats.raw.rterr;*/ #endif /* UDP_STATS */ diff --git a/src/netif/ppp/randm.c b/src/netif/ppp/randm.c index f813178f..05eeb441 100644 --- a/src/netif/ppp/randm.c +++ b/src/netif/ppp/randm.c @@ -32,6 +32,7 @@ *****************************************************************************/ #include "ppp.h" +#if PPP_SUPPORT > 0 #include "md5.h" #include "randm.h" @@ -237,4 +238,5 @@ u32_t avRandom() #endif /* MD5_SUPPORT */ +#endif /* PPP_SUPPORT */