buf_bufdata(struct psock_buf *buf, u16_t len,\r
u8_t **dataptr, u16_t *datalen)\r
{\r
+ ( void ) len;\r
if(*datalen < buf->left) {\r
memcpy(buf->ptr, *dataptr, *datalen);\r
buf->ptr += *datalen;\r
\r
/* Save the length of and a pointer to the data that is to be\r
sent. */\r
- s->sendptr = buf;\r
+ s->sendptr = (unsigned char*)buf;\r
s->sendlen = len;\r
\r
s->state = STATE_NONE;\r
{\r
PT_BEGIN(&psock->psockpt);\r
\r
- buf_setup(&psock->buf, psock->bufptr, psock->bufsize);\r
+ buf_setup(&psock->buf, (unsigned char*)psock->bufptr, psock->bufsize);\r
\r
/* XXX: Should add buf_checkmarker() before do{} loop, if\r
incoming data has been handled while waiting for a write. */\r
{\r
PT_BEGIN(&psock->psockpt);\r
\r
- buf_setup(&psock->buf, psock->bufptr, psock->bufsize);\r
+ buf_setup(&psock->buf, (unsigned char * ) psock->bufptr, psock->bufsize);\r
\r
/* XXX: Should add buf_checkmarker() before do{} loop, if\r
incoming data has been handled while waiting for a write. */\r
psock->readlen = 0;\r
psock->bufptr = buffer;\r
psock->bufsize = buffersize;\r
- buf_setup(&psock->buf, buffer, buffersize);\r
+ buf_setup(&psock->buf, (unsigned char*) buffer, buffersize);\r
PT_INIT(&psock->pt);\r
PT_INIT(&psock->psockpt);\r
}\r