diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-02 20:25:36 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-02 20:25:36 +0200 |
commit | 969db946d46f6d7d8cf378d2f7690b44428c0bba (patch) | |
tree | b650fc6baefc4e3090be5bc8de8ace78b879d297 /include | |
parent | 52c7649e2379e3c8c9acafa7351fa6838532834a (diff) |
osmux: osmux_get_payload returns uint8_t * instead void *
So we easily add offsets without any casting.
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/netif/osmux.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |