mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-19 16:20:45 +00:00
"ISO C forbids conversion of function pointer to object pointer type" - removed callback function pointer display in debug messages. Anyway, this is quite a meaningless information.
This commit is contained in:
parent
f63b87e28b
commit
295eeef9b6
@ -1938,7 +1938,7 @@ int sifup(ppp_pcb *pcb) {
|
||||
pcb->if_up = 1;
|
||||
pcb->err_code = PPPERR_NONE;
|
||||
|
||||
PPPDEBUG(LOG_DEBUG, ("sifup: unit %d: link_status_cb=%p err_code=%d\n", pcb->num, pcb->link_status_cb, pcb->err_code));
|
||||
PPPDEBUG(LOG_DEBUG, ("sifup: unit %d: err_code=%d\n", pcb->num, pcb->err_code));
|
||||
if (pcb->link_status_cb)
|
||||
pcb->link_status_cb(pcb, pcb->err_code, pcb->link_status_ctx);
|
||||
|
||||
@ -1959,7 +1959,7 @@ int sifdown(ppp_pcb *pcb) {
|
||||
/* make sure the netif status callback is called */
|
||||
netif_set_down(&pcb->netif);
|
||||
netif_remove(&pcb->netif);
|
||||
PPPDEBUG(LOG_DEBUG, ("sifdown: unit %d: link_status_cb=%p err_code=%d\n", pcb->num, pcb->link_status_cb, pcb->err_code));
|
||||
PPPDEBUG(LOG_DEBUG, ("sifdown: unit %d: err_code=%d\n", pcb->num, pcb->err_code));
|
||||
if (pcb->link_status_cb)
|
||||
pcb->link_status_cb(pcb, PPPERR_CONNECT, pcb->link_status_ctx);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user