Merge pull request #550 from oliverschmidt/master
Avoid compiler warnings.
This commit is contained in:
commit
e16521e5c1
|
@ -456,7 +456,6 @@ quit(void)
|
||||||
PROCESS_THREAD(www_process, ev, data)
|
PROCESS_THREAD(www_process, ev, data)
|
||||||
{
|
{
|
||||||
static struct ctk_widget *w;
|
static struct ctk_widget *w;
|
||||||
static unsigned char i;
|
|
||||||
#if WWW_CONF_WITH_WGET
|
#if WWW_CONF_WITH_WGET
|
||||||
static char *argptr;
|
static char *argptr;
|
||||||
#endif /* WWW_CONF_WITH_WGET */
|
#endif /* WWW_CONF_WITH_WGET */
|
||||||
|
|
|
@ -774,7 +774,7 @@ check_entries(void)
|
||||||
static void
|
static void
|
||||||
newdata(void)
|
newdata(void)
|
||||||
{
|
{
|
||||||
static uint8_t nquestions, nanswers, nauthrr;
|
static uint8_t nquestions, nanswers;
|
||||||
|
|
||||||
static int8_t i;
|
static int8_t i;
|
||||||
|
|
||||||
|
@ -863,6 +863,7 @@ newdata(void)
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
static uint8_t nauthrr;
|
||||||
PRINTF("resolver: But we are still probing. Waiting...\n");
|
PRINTF("resolver: But we are still probing. Waiting...\n");
|
||||||
/* We are still probing. We need to do the mDNS
|
/* We are still probing. We need to do the mDNS
|
||||||
* probe race condition check here and make sure
|
* probe race condition check here and make sure
|
||||||
|
|
|
@ -102,7 +102,6 @@ struct arp_entry {
|
||||||
|
|
||||||
static const struct uip_eth_addr broadcast_ethaddr =
|
static const struct uip_eth_addr broadcast_ethaddr =
|
||||||
{{0xff,0xff,0xff,0xff,0xff,0xff}};
|
{{0xff,0xff,0xff,0xff,0xff,0xff}};
|
||||||
static const uint16_t broadcast_ipaddr[2] = {0xffff,0xffff};
|
|
||||||
|
|
||||||
static struct arp_entry arp_table[UIP_ARPTAB_SIZE];
|
static struct arp_entry arp_table[UIP_ARPTAB_SIZE];
|
||||||
static uip_ipaddr_t ipaddr;
|
static uip_ipaddr_t ipaddr;
|
||||||
|
|
|
@ -64,16 +64,17 @@
|
||||||
#define UIP_EXT_BUF ((struct uip_ext_hdr *)&uip_buf[uip_l2_l3_hdr_len])
|
#define UIP_EXT_BUF ((struct uip_ext_hdr *)&uip_buf[uip_l2_l3_hdr_len])
|
||||||
#define UIP_FIRST_EXT_BUF ((struct uip_ext_hdr *)&uip_buf[UIP_LLIPH_LEN])
|
#define UIP_FIRST_EXT_BUF ((struct uip_ext_hdr *)&uip_buf[UIP_LLIPH_LEN])
|
||||||
|
|
||||||
/** \brief temporary IP address */
|
|
||||||
static uip_ipaddr_t tmp_ipaddr;
|
|
||||||
|
|
||||||
#if UIP_CONF_IPV6_RPL
|
#if UIP_CONF_IPV6_RPL
|
||||||
#include "rpl/rpl.h"
|
#include "rpl/rpl.h"
|
||||||
#endif /* UIP_CONF_IPV6_RPL */
|
#endif /* UIP_CONF_IPV6_RPL */
|
||||||
|
|
||||||
|
#if UIP_CONF_IPV6
|
||||||
|
|
||||||
|
/** \brief temporary IP address */
|
||||||
|
static uip_ipaddr_t tmp_ipaddr;
|
||||||
|
|
||||||
LIST(echo_reply_callback_list);
|
LIST(echo_reply_callback_list);
|
||||||
|
|
||||||
#if UIP_CONF_IPV6
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
uip_icmp6_echo_request_input(void)
|
uip_icmp6_echo_request_input(void)
|
||||||
|
|
|
@ -86,11 +86,9 @@ chksum(void) {
|
||||||
asm("lda _chksum_ptr+1");
|
asm("lda _chksum_ptr+1");
|
||||||
asm("sta ptr1+1");
|
asm("sta ptr1+1");
|
||||||
|
|
||||||
|
|
||||||
asm("lda _chksum_len+1");
|
asm("lda _chksum_len+1");
|
||||||
asm("beq chksumlast");
|
asm("beq chksumlast");
|
||||||
|
|
||||||
|
|
||||||
/* If checksum is > 256, do the first runs. */
|
/* If checksum is > 256, do the first runs. */
|
||||||
asm("ldy #0");
|
asm("ldy #0");
|
||||||
asm("clc");
|
asm("clc");
|
||||||
|
@ -168,6 +166,8 @@ chksum(void) {
|
||||||
|
|
||||||
asm("lda tmp1");
|
asm("lda tmp1");
|
||||||
asm("ldx tmp1+1");
|
asm("ldx tmp1+1");
|
||||||
|
|
||||||
|
return __AX__;
|
||||||
}
|
}
|
||||||
#pragma optimize(pop)
|
#pragma optimize(pop)
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
|
@ -251,7 +251,6 @@ transport_chksum(uint8_t protocol)
|
||||||
asm("sta _chksum_tmp+1");
|
asm("sta _chksum_tmp+1");
|
||||||
asm("bcs tcpchksum_loop1");
|
asm("bcs tcpchksum_loop1");
|
||||||
|
|
||||||
|
|
||||||
asm("lda _uip_aligned_buf+3+%b", UIP_LLH_LEN);
|
asm("lda _uip_aligned_buf+3+%b", UIP_LLH_LEN);
|
||||||
asm("sec");
|
asm("sec");
|
||||||
asm("sbc #%b", UIP_IPH_LEN);
|
asm("sbc #%b", UIP_IPH_LEN);
|
||||||
|
@ -260,7 +259,6 @@ transport_chksum(uint8_t protocol)
|
||||||
asm("sbc #0");
|
asm("sbc #0");
|
||||||
asm("sta _chksum_len+1");
|
asm("sta _chksum_len+1");
|
||||||
|
|
||||||
|
|
||||||
asm("ldy #$0c");
|
asm("ldy #$0c");
|
||||||
asm("clc");
|
asm("clc");
|
||||||
asm("php");
|
asm("php");
|
||||||
|
@ -287,7 +285,6 @@ transport_chksum(uint8_t protocol)
|
||||||
asm("adc %v", chksum_protocol);
|
asm("adc %v", chksum_protocol);
|
||||||
asm("sta _chksum_tmp+1");
|
asm("sta _chksum_tmp+1");
|
||||||
|
|
||||||
|
|
||||||
asm("lda _chksum_tmp");
|
asm("lda _chksum_tmp");
|
||||||
asm("adc _chksum_len+1");
|
asm("adc _chksum_len+1");
|
||||||
asm("sta _chksum_tmp");
|
asm("sta _chksum_tmp");
|
||||||
|
@ -295,8 +292,6 @@ transport_chksum(uint8_t protocol)
|
||||||
asm("adc _chksum_len");
|
asm("adc _chksum_len");
|
||||||
asm("sta _chksum_tmp+1");
|
asm("sta _chksum_tmp+1");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
asm("tcpchksum_loop3:");
|
asm("tcpchksum_loop3:");
|
||||||
asm("lda _chksum_tmp");
|
asm("lda _chksum_tmp");
|
||||||
asm("adc #0");
|
asm("adc #0");
|
||||||
|
@ -306,7 +301,6 @@ transport_chksum(uint8_t protocol)
|
||||||
asm("sta _chksum_tmp+1");
|
asm("sta _chksum_tmp+1");
|
||||||
asm("bcs tcpchksum_loop3");
|
asm("bcs tcpchksum_loop3");
|
||||||
|
|
||||||
|
|
||||||
return chksum_tmp;
|
return chksum_tmp;
|
||||||
}
|
}
|
||||||
#pragma optimize(pop)
|
#pragma optimize(pop)
|
||||||
|
@ -353,7 +347,6 @@ uip_tcpchksum(void)
|
||||||
asm("sta _chksum_tmp+1");
|
asm("sta _chksum_tmp+1");
|
||||||
asm("bcs tcpchksum_loop1");
|
asm("bcs tcpchksum_loop1");
|
||||||
|
|
||||||
|
|
||||||
asm("lda _uip_buf+3+%b", UIP_LLH_LEN);
|
asm("lda _uip_buf+3+%b", UIP_LLH_LEN);
|
||||||
asm("sec");
|
asm("sec");
|
||||||
asm("sbc #%b", UIP_IPH_LEN);
|
asm("sbc #%b", UIP_IPH_LEN);
|
||||||
|
@ -362,7 +355,6 @@ uip_tcpchksum(void)
|
||||||
asm("sbc #0");
|
asm("sbc #0");
|
||||||
asm("sta _chksum_len+1");
|
asm("sta _chksum_len+1");
|
||||||
|
|
||||||
|
|
||||||
asm("ldy #$0c");
|
asm("ldy #$0c");
|
||||||
asm("clc");
|
asm("clc");
|
||||||
asm("php");
|
asm("php");
|
||||||
|
@ -389,7 +381,6 @@ uip_tcpchksum(void)
|
||||||
asm("adc #6"); /* IP_PROTO_TCP */
|
asm("adc #6"); /* IP_PROTO_TCP */
|
||||||
asm("sta _chksum_tmp+1");
|
asm("sta _chksum_tmp+1");
|
||||||
|
|
||||||
|
|
||||||
asm("lda _chksum_tmp");
|
asm("lda _chksum_tmp");
|
||||||
asm("adc _chksum_len+1");
|
asm("adc _chksum_len+1");
|
||||||
asm("sta _chksum_tmp");
|
asm("sta _chksum_tmp");
|
||||||
|
@ -397,8 +388,6 @@ uip_tcpchksum(void)
|
||||||
asm("adc _chksum_len");
|
asm("adc _chksum_len");
|
||||||
asm("sta _chksum_tmp+1");
|
asm("sta _chksum_tmp+1");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
asm("tcpchksum_loop3:");
|
asm("tcpchksum_loop3:");
|
||||||
asm("lda _chksum_tmp");
|
asm("lda _chksum_tmp");
|
||||||
asm("adc #0");
|
asm("adc #0");
|
||||||
|
@ -408,7 +397,6 @@ uip_tcpchksum(void)
|
||||||
asm("sta _chksum_tmp+1");
|
asm("sta _chksum_tmp+1");
|
||||||
asm("bcs tcpchksum_loop3");
|
asm("bcs tcpchksum_loop3");
|
||||||
|
|
||||||
|
|
||||||
return chksum_tmp;
|
return chksum_tmp;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -456,7 +444,6 @@ uip_udpchksum(void)
|
||||||
asm("sta _chksum_tmp+1");
|
asm("sta _chksum_tmp+1");
|
||||||
asm("bcs tcpchksum_loop1");
|
asm("bcs tcpchksum_loop1");
|
||||||
|
|
||||||
|
|
||||||
asm("lda _uip_buf+3+%b", UIP_LLH_LEN);
|
asm("lda _uip_buf+3+%b", UIP_LLH_LEN);
|
||||||
asm("sec");
|
asm("sec");
|
||||||
asm("sbc #20");
|
asm("sbc #20");
|
||||||
|
@ -465,7 +452,6 @@ uip_udpchksum(void)
|
||||||
asm("sbc #0");
|
asm("sbc #0");
|
||||||
asm("sta _chksum_len+1");
|
asm("sta _chksum_len+1");
|
||||||
|
|
||||||
|
|
||||||
asm("ldy #$0c");
|
asm("ldy #$0c");
|
||||||
asm("clc");
|
asm("clc");
|
||||||
asm("php");
|
asm("php");
|
||||||
|
@ -492,7 +478,6 @@ uip_udpchksum(void)
|
||||||
asm("adc #17"); /* IP_PROTO_UDP */
|
asm("adc #17"); /* IP_PROTO_UDP */
|
||||||
asm("sta _chksum_tmp+1");
|
asm("sta _chksum_tmp+1");
|
||||||
|
|
||||||
|
|
||||||
asm("lda _chksum_tmp");
|
asm("lda _chksum_tmp");
|
||||||
asm("adc _chksum_len+1");
|
asm("adc _chksum_len+1");
|
||||||
asm("sta _chksum_tmp");
|
asm("sta _chksum_tmp");
|
||||||
|
@ -500,8 +485,6 @@ uip_udpchksum(void)
|
||||||
asm("adc _chksum_len");
|
asm("adc _chksum_len");
|
||||||
asm("sta _chksum_tmp+1");
|
asm("sta _chksum_tmp+1");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
asm("tcpchksum_loop3:");
|
asm("tcpchksum_loop3:");
|
||||||
asm("lda _chksum_tmp");
|
asm("lda _chksum_tmp");
|
||||||
asm("adc #0");
|
asm("adc #0");
|
||||||
|
@ -511,7 +494,6 @@ uip_udpchksum(void)
|
||||||
asm("sta _chksum_tmp+1");
|
asm("sta _chksum_tmp+1");
|
||||||
asm("bcs tcpchksum_loop3");
|
asm("bcs tcpchksum_loop3");
|
||||||
|
|
||||||
|
|
||||||
return chksum_tmp;
|
return chksum_tmp;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue