mbuf_buf: cast NULL pointer to uint8_t pointer, as required by C++
This commit is contained in:
parent
3791d0fbf9
commit
ff318620f5
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ int mbuf_debug(struct re_printf *pf, const struct mbuf *mb);
|
|||
*/
|
||||
static inline uint8_t *mbuf_buf(const struct mbuf *mb)
|
||||
{
|
||||
return mb ? mb->buf + mb->pos : NULL;
|
||||
return mb ? mb->buf + mb->pos : (uint8_t *)NULL;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue