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));
This commit is contained in:
Holger Hans Peter Freyther 2014-07-24 21:09:31 +02:00
parent 922ef5dc86
commit 652cdb4699
1 changed files with 1 additions and 1 deletions

View File

@ -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) {