diff --git a/sys/sys/queue.h b/sys/sys/queue.h index efaf30c6bdd..18958785a95 100644 --- a/sys/sys/queue.h +++ b/sys/sys/queue.h @@ -274,7 +274,7 @@ struct { \ #define STAILQ_LAST(head, type, field) \ (STAILQ_EMPTY((head)) ? \ NULL : \ - ((struct type *) \ + ((struct type *)(void *) \ ((char *)((head)->stqh_last) - __offsetof(struct type, field)))) #define STAILQ_NEXT(elm, field) ((elm)->field.stqe_next)