ppp_free: fixed type of local 'err'

This commit is contained in:
goldsimon 2015-04-23 07:25:10 +02:00
parent e60bc69515
commit 53a96f69ef

View File

@ -341,7 +341,7 @@ ppp_close(ppp_pcb *pcb, u8_t nocarrier)
* Return 0 on success, an error code on failure. * Return 0 on success, an error code on failure.
*/ */
err_t ppp_free(ppp_pcb *pcb) { err_t ppp_free(ppp_pcb *pcb) {
int err; err_t err;
if (pcb->phase != PPP_PHASE_DEAD) { if (pcb->phase != PPP_PHASE_DEAD) {
return ERR_CONN; return ERR_CONN;
} }