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

@ -2286,10 +2286,10 @@ dcb_printf(DCB *dcb, const char *fmt, ...)
return;
}
va_start(args, fmt);
vsnprintf(GWBUF_DATA(buf), 10240, fmt, args);
vsnprintf((char*)GWBUF_DATA(buf), 10240, fmt, args);
va_end(args);
buf->end = (void *)((char *)GWBUF_DATA(buf) + strlen(GWBUF_DATA(buf)));
buf->end = (void *)((char *)GWBUF_DATA(buf) + strlen((char*)GWBUF_DATA(buf)));
dcb->func.write(dcb, buf);
}