forked from pool/libosmo-abis
53 lines
1.8 KiB
Diff
53 lines
1.8 KiB
Diff
|
From 025e2dd7129483300efe8dd02f8e1198c92aaad5 Mon Sep 17 00:00:00 2001
|
||
|
From: Jan Engelhardt <jengelh@inai.de>
|
||
|
Date: Thu, 2 Apr 2015 14:25:43 +0200
|
||
|
Subject: [PATCH] build: resolve compiler warnings
|
||
|
|
||
|
gcc:
|
||
|
trau/osmo_ortp.c: In function 'osmo_rtp_socket_create':
|
||
|
trau/osmo_ortp.c:329:8: warning: passing argument 4 of
|
||
|
"rtp_session_signal_connect" makes pointer from integer without
|
||
|
a cast [enabled by default]
|
||
|
(unsigned long) rs);
|
||
|
In file included from /usr/include/ortp/ortp.h:68:0,
|
||
|
from trau/osmo_ortp.c:35:
|
||
|
/usr/include/ortp/rtpsession.h:417:17: note: expected "void *"
|
||
|
but argument is of type "long unsigned int"
|
||
|
ORTP_PUBLIC int rtp_session_signal_connect(RtpSession *session,
|
||
|
const char *signal_name, RtpCallback cb, void *user_data);
|
||
|
|
||
|
rpmlint:
|
||
|
E: libosmo-abis 64bit-portability-issue trau/osmo_ortp.c:329, 332, 335, 338
|
||
|
---
|
||
|
src/trau/osmo_ortp.c | 8 ++++----
|
||
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
||
|
|
||
|
diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c
|
||
|
index fedc977..55fce87 100644
|
||
|
--- a/src/trau/osmo_ortp.c
|
||
|
+++ b/src/trau/osmo_ortp.c
|
||
|
@@ -326,16 +326,16 @@ struct osmo_rtp_socket *osmo_rtp_socket_create(void *talloc_ctx, unsigned int fl
|
||
|
|
||
|
rtp_session_signal_connect(rs->sess, "ssrc_changed",
|
||
|
(RtpCallback) ortp_sig_cb_ssrc,
|
||
|
- (unsigned long) rs);
|
||
|
+ rs);
|
||
|
rtp_session_signal_connect(rs->sess, "payload_type_changed",
|
||
|
(RtpCallback) ortp_sig_cb_pt,
|
||
|
- (unsigned long) rs);
|
||
|
+ rs);
|
||
|
rtp_session_signal_connect(rs->sess, "network_error",
|
||
|
(RtpCallback) ortp_sig_cb_net,
|
||
|
- (unsigned long) rs);
|
||
|
+ rs);
|
||
|
rtp_session_signal_connect(rs->sess, "timestamp_jump",
|
||
|
(RtpCallback) ortp_sig_cb_ts,
|
||
|
- (unsigned long) rs);
|
||
|
+ rs);
|
||
|
|
||
|
/* initialize according to the RFC */
|
||
|
rtp_session_set_seq_number(rs->sess, random());
|
||
|
--
|
||
|
2.1.4
|
||
|
|