switch (buf[i]) {
case SL_ESCEND:
DPUTC(&slipbuf, SL_END);
+ slipstate = OK;
break;
case SL_ESCESC:
DPUTC(&slipbuf, SL_ESC);
+ slipstate = OK;
break;
case SL_END:
moan("found escaped end byte (discard packet and resync");
slipstate = OK;
break;
default:
- moan("unspected escape char 0x%02x", buf[i]);
+ moan("unexpected escape char 0x%02x", buf[i]);
slipstate = BAD;
break;
}