diff --git a/drivers/ethos/ethos.c b/drivers/ethos/ethos.c index 6408bc0c95..de636a422a 100644 --- a/drivers/ethos/ethos.c +++ b/drivers/ethos/ethos.c @@ -60,7 +60,7 @@ void ethos_setup(ethos_t *dev, const ethos_params_t *params) dev->last_framesize = 0; dev->accept_new = true; - tsrb_init(&dev->inbuf, (char*)params->buf, params->bufsize); + tsrb_init(&dev->inbuf, params->buf, params->bufsize); mutex_init(&dev->out_mutex); uint32_t a = random_uint32(); @@ -127,7 +127,7 @@ static void _end_of_frame(ethos_t *dev) /* fall through */ case ETHOS_FRAME_TYPE_HELLO_REPLY: if (dev->framesize == 6) { - tsrb_get(&dev->inbuf, (char*)dev->remote_mac_addr, 6); + tsrb_get(&dev->inbuf, dev->remote_mac_addr, 6); } break; }