[PATCH] libosmo-abis[master]: osmo_ortp.c: Fix warning: use updated ortp API

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Wed Jun 21 13:58:08 UTC 2017


Review at  https://gerrit.osmocom.org/2990

osmo_ortp.c: Fix warning: use updated ortp API

Since ortp commit 5ab29c50adc7948b11449e3aeee66010379ff7dc preceeding
ortp 0.22, the API is fixed and requests a pointer instead of an
unsigned long.

As we now require at least ortp 0.22 since libosmo-abis
15d9b7929d449e4138bcb003c614035bceadc3d1, we can safely assume the API
will request a pointer instead of an unsigned long.

Change-Id: I2dbd0498d75160358eca4336850e1a0ad2efdbeb
---
M src/trau/osmo_ortp.c
1 file changed, 4 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/90/2990/1

diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c
index c4e9d53..d31ce8e 100644
--- a/src/trau/osmo_ortp.c
+++ b/src/trau/osmo_ortp.c
@@ -349,17 +349,13 @@
 	rtp_session_set_jitter_compensation(rs->sess, 100);
 
 	rtp_session_signal_connect(rs->sess, "ssrc_changed",
-				   (RtpCallback) ortp_sig_cb_ssrc,
-				   (unsigned long) rs);
+				   (RtpCallback) ortp_sig_cb_ssrc, rs);
 	rtp_session_signal_connect(rs->sess, "payload_type_changed",
-				   (RtpCallback) ortp_sig_cb_pt,
-				   (unsigned long) rs);
+				   (RtpCallback) ortp_sig_cb_pt, rs);
 	rtp_session_signal_connect(rs->sess, "network_error",
-				   (RtpCallback) ortp_sig_cb_net,
-				   (unsigned long) rs);
+				   (RtpCallback) ortp_sig_cb_net, rs);
 	rtp_session_signal_connect(rs->sess, "timestamp_jump",
-				   (RtpCallback) ortp_sig_cb_ts,
-				   (unsigned long) rs);
+				   (RtpCallback) ortp_sig_cb_ts, rs);
 
 	/* initialize according to the RFC */
 	rtp_session_set_seq_number(rs->sess, random());

-- 
To view, visit https://gerrit.osmocom.org/2990
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2dbd0498d75160358eca4336850e1a0ad2efdbeb
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list