mbuf_buf: cast NULL pointer to uint8_t pointer, as required by C++

This commit is contained in:
Alfred E. Heggestad 2012-04-05 19:49:12 +00:00
parent 3791d0fbf9
commit ff318620f5

View file

@ -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;
}