mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-06 09:56:38 +00:00
PPP, correctly cast int to u8_t in PPPCTLS_ERRCODE in ppp_ioctl()
This commit is contained in:
parent
7f97e354b4
commit
07e72d2ac8
@ -1318,7 +1318,7 @@ ppp_ioctl(ppp_pcb *pcb, int cmd, void *arg)
|
||||
|
||||
case PPPCTLS_ERRCODE: /* Set the PPP error code. */
|
||||
if (arg) {
|
||||
pcb->err_code = *(u8_t *)arg;
|
||||
pcb->err_code = (u8_t)(*(int *)arg);
|
||||
return PPPERR_NONE;
|
||||
}
|
||||
return PPPERR_PARAM;
|
||||
|
Loading…
Reference in New Issue
Block a user