summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libtrau
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-24 21:09:31 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-24 21:09:31 +0200
commit652cdb46993fed5cdd964acfe0b4c8c41863fafd (patch)
treefc8df5519ee2b13f4fe4b0c8c7540ab5f3b28cc6 /openbsc/src/libtrau
parent922ef5dc86a0514c9a9de728f1761ab9bd42031b (diff)
trau: Cast to remove compiler warning
rtp_proxy.c: In function ‘rtp_decode’: rtp_proxy.c:199:8: warning: assignment from incompatible pointer type frame = msgb_put(new_msg, sizeof(struct gsm_data_frame));
Diffstat (limited to 'openbsc/src/libtrau')
-rw-r--r--openbsc/src/libtrau/rtp_proxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libtrau/rtp_proxy.c b/openbsc/src/libtrau/rtp_proxy.c
index 67c0c7005..33169ff9d 100644
--- a/openbsc/src/libtrau/rtp_proxy.c
+++ b/openbsc/src/libtrau/rtp_proxy.c
@@ -196,7 +196,7 @@ static int rtp_decode(struct msgb *msg, uint32_t callref, struct msgb **data)
if (!new_msg)
return -ENOMEM;
- frame = msgb_put(new_msg, sizeof(struct gsm_data_frame));
+ frame = (struct gsm_data_frame *) msgb_put(new_msg, sizeof(struct gsm_data_frame));
frame->msg_type = msg_type;
frame->callref = callref;
if (rtph->payload_type == RTP_PT_AMR) {