aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-02-09 11:44:07 +0100
committerHarald Welte <laforge@gnumonks.org>2013-02-09 11:44:07 +0100
commit98407bd457b88c1a26de2a9955de3de9846e4f68 (patch)
tree50fdeb59b8280b87e6b8381317f7ef91c8239f66
parent0bb2974b370080b43282323364ebc6b0b6480803 (diff)
rsl: Fix compiler warning in use of osmo_rtp_get_bound_ip_port()
for whatever reason i decided that a port number in osmo_rtp_get_bound_ip_port() needs to be a int * and not a uint16_t * at the time, so we have to deal with this here rather than breaking the ABI.
-rw-r--r--src/common/rsl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c
index 1d1be91a..cab8a56d 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -1289,6 +1289,8 @@ static int rsl_rx_ipac_XXcx(struct msgb *msg)
if (connect_ip && connect_port) {
struct in_addr ia;
+ int port;
+
/* Special rule: If connect_ip == 0.0.0.0, use RSL IP
* address */
if (*connect_ip == 0) {
@@ -1315,11 +1317,12 @@ static int rsl_rx_ipac_XXcx(struct msgb *msg)
rc = osmo_rtp_get_bound_ip_port(lchan->abis_ip.rtp_socket,
&lchan->abis_ip.bound_ip,
- &lchan->abis_ip.bound_port);
+ &port);
if (rc < 0)
LOGP(DRSL, LOGL_ERROR, "%s IPAC cannot obtain "
"locally bound IP/port: %d\n",
gsm_lchan_name(lchan), rc);
+ lchan->abis_ip.bound_port = port;
} else {
/* FIXME: discard all codec frames */
}