GWBUF_DATA(...) explicitly returns uint8_t*

This commit is contained in:
Johan Wikman
2016-11-24 13:31:29 +02:00
parent 04753bbb76
commit 265aacaf15
16 changed files with 27 additions and 26 deletions

View File

@ -291,7 +291,7 @@ execute(ROUTER *instance, void *router_session, GWBUF *queue)
/* Extract the characters */
while (queue && (cmdlen < CMDBUFLEN - 1))
{
const char* data = GWBUF_DATA(queue);
const char* data = (char*)GWBUF_DATA(queue);
int len = GWBUF_LENGTH(queue);
int n = MXS_MIN(len, CMDBUFLEN - cmdlen - 1);