mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-12-10 08:46:40 +08:00
minor compiler warning fixes
This commit is contained in:
parent
5b73921be3
commit
a046c795a3
@ -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") );
|
LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_TCP, TCP_NODELAY) -> %s\n", s, (*(int *)optval)?"on":"off") );
|
||||||
break;
|
break;
|
||||||
case TCP_KEEPALIVE:
|
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));
|
LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_setsockopt(%d, IPPROTO_TCP, TCP_KEEPALIVE) -> %u\n", s, sock->conn->pcb.tcp->keepalive));
|
||||||
break;
|
break;
|
||||||
} /* switch */
|
} /* switch */
|
||||||
|
|||||||
@ -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"));
|
LWIP_DEBUGF(UDP_DEBUG | DBG_TRACE | 3, ("raw_send_payload\n"));
|
||||||
|
|
||||||
if ((netif = ip_route(ipaddr)) == NULL) {
|
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
|
#ifdef RAW_STATS
|
||||||
/* ++lwip_stats.raw.rterr;*/
|
/* ++lwip_stats.raw.rterr;*/
|
||||||
#endif /* UDP_STATS */
|
#endif /* UDP_STATS */
|
||||||
|
|||||||
@ -32,6 +32,7 @@
|
|||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#include "ppp.h"
|
#include "ppp.h"
|
||||||
|
#if PPP_SUPPORT > 0
|
||||||
#include "md5.h"
|
#include "md5.h"
|
||||||
#include "randm.h"
|
#include "randm.h"
|
||||||
|
|
||||||
@ -237,4 +238,5 @@ u32_t avRandom()
|
|||||||
|
|
||||||
|
|
||||||
#endif /* MD5_SUPPORT */
|
#endif /* MD5_SUPPORT */
|
||||||
|
#endif /* PPP_SUPPORT */
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user