From 969db946d46f6d7d8cf378d2f7690b44428c0bba Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 2 Aug 2012 20:25:36 +0200 Subject: [PATCH] osmux: osmux_get_payload returns uint8_t * instead void * So we easily add offsets without any casting. --- include/osmocom/netif/osmux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osmocom/netif/osmux.h b/include/osmocom/netif/osmux.h index f4c7b45..3de5127 100644 --- a/include/osmocom/netif/osmux.h +++ b/include/osmocom/netif/osmux.h @@ -53,7 +53,7 @@ struct osmux_out_handle { uint32_t rtp_timestamp; }; -static inline void *osmux_get_payload(struct osmux_hdr *osmuxh) +static inline uint8_t *osmux_get_payload(struct osmux_hdr *osmuxh) { return (uint8_t *)osmuxh + sizeof(struct osmux_hdr); }