lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] lwip 2.0.2 + freertos + ARM7


From: address@hidden
Subject: Re: [lwip-users] lwip 2.0.2 + freertos + ARM7
Date: Thu, 11 May 2017 20:59:27 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Werner Motz wrote:
tcpip_callback(tcp_write(pcb, ucrecBuff, supersize, TCP_WRITE_FLAG_COPY),NULL);

tcpip_callback(tcp_output(pcb), NULL);


Ouch! tcpip_callback() takes a void pointer as first argument. You are *first* calling tcp_write with the parameters supplied, then passing the return valud of tcp_write to tcpip_callback. Here, an 'err_t' type is implicitly interpreted as a void pointer.

Seriously, learn C and learn to set up your compiler to warn about such erroneous code!

If and when you have truly lwIP related questions, feel welcome here to get them answered!

Simon

reply via email to

[Prev in Thread] Current Thread [Next in Thread]