mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
lint: fix variableScope warnings
This commit is contained in:
parent
a5aeaab87b
commit
8723ba7568
@ -117,7 +117,6 @@ void auto_init_net_if(void)
|
||||
net_if_init();
|
||||
|
||||
if (transceivers != 0) {
|
||||
int iface;
|
||||
#if CPUID_ID_LEN && defined(MODULE_HASHES)
|
||||
uint8_t cpuid[CPUID_ID_LEN];
|
||||
|
||||
@ -125,7 +124,7 @@ void auto_init_net_if(void)
|
||||
#endif
|
||||
transceiver_init(transceivers);
|
||||
transceiver_start();
|
||||
iface = net_if_init_interface(0, transceivers);
|
||||
int iface = net_if_init_interface(0, transceivers);
|
||||
|
||||
#if CPUID_ID_LEN && defined(MODULE_HASHES)
|
||||
net_if_eui64_t eui64;
|
||||
|
||||
@ -660,14 +660,13 @@ void *tcp_packet_handler(void *arg)
|
||||
(void) arg;
|
||||
|
||||
msg_t m_recv_ip, m_send_ip;
|
||||
tcp_hdr_t *tcp_header;
|
||||
socket_internal_t *tcp_socket = NULL;
|
||||
|
||||
while (1) {
|
||||
msg_receive(&m_recv_ip);
|
||||
|
||||
ipv6_hdr_t *ipv6_header = ((ipv6_hdr_t *)m_recv_ip.content.ptr);
|
||||
tcp_header = ((tcp_hdr_t *)(m_recv_ip.content.ptr + IPV6_HDR_LEN));
|
||||
tcp_hdr_t *tcp_header = ((tcp_hdr_t *)(m_recv_ip.content.ptr + IPV6_HDR_LEN));
|
||||
#ifdef TCP_HC
|
||||
tcp_socket = decompress_tcp_packet(ipv6_header);
|
||||
#else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user