forked from pool/libosmo-abis
Jan Engelhardt
55c96a922d
OBS-URL: https://build.opensuse.org/package/show/network:telephony/libosmo-abis?expand=0&rev=12
53 lines
1.8 KiB
Diff
53 lines
1.8 KiB
Diff
From 34ce619dc89fa82f55cc2ebba85e3435d04d2531 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 65ec269..f605af9 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.4.3
|
|
|