From: Michael Jerris Date: Mon, 12 Feb 2007 19:35:09 +0000 (+0000) Subject: ntohs takes u_short, and we are in a 16 bit bitfield, so we can cast this. X-Git-Tag: v1.0-beta1~1162 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43e50048caceb1fb3595aca23900631f068bf12c;p=thirdparty%2Ffreeswitch.git ntohs takes u_short, and we are in a 16 bit bitfield, so we can cast this. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4206 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 053f94216e..ecb021e4d6 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1194,7 +1194,7 @@ static int rtp_common_write(switch_rtp_t *rtp_session, void *data, uint32_t data } rtp_session->last_write_ts = ntohl(send_msg->header.ts); - rtp_session->last_write_seq = ntohs(send_msg->header.seq); + rtp_session->last_write_seq = ntohs((u_short)send_msg->header.seq); if (send) { switch_socket_sendto(rtp_session->sock, rtp_session->remote_addr, 0, (void*)send_msg, &bytes);