summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-05-15 22:26:47 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-05-15 22:26:47 +0000
commita82aa1c6502cf4aa1dae32befabf05625bad5b68 (patch)
tree96950c81ae0f42401e5211fca2a0679c26618533
parentc30643b049e0d6215f49c77e38092832b5b74179 (diff)
Remove casts.
-rw-r--r--audio/avdtp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index 761cb2f5..ef51cdd2 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -2765,7 +2765,7 @@ static void avdtp_server_cb(GIOChannel *chan, int err, const bdaddr_t *src,
goto drop;
}
- session = avdtp_get_internal((bdaddr_t *) src, (bdaddr_t *) dst);
+ session = avdtp_get_internal(src, dst);
if (session->pending_open && session->pending_open->open_acp) {
handle_transport_connect(session, sk, l2o.imtu, l2o.omtu);
@@ -2784,11 +2784,11 @@ static void avdtp_server_cb(GIOChannel *chan, int err, const bdaddr_t *src,
(GIOFunc) session_cb, session);
g_io_channel_unref(chan);
- if (service_req_auth((bdaddr_t *) src, (bdaddr_t *) dst, ADVANCED_AUDIO_UUID,
- auth_cb, session) == 0)
+ if (service_req_auth(src, dst, ADVANCED_AUDIO_UUID, auth_cb,
+ session) == 0)
return;
- else if (!manager_authorize((bdaddr_t *) dst, ADVANCED_AUDIO_UUID, auth_cb_old,
- session, &session->pending_auth)) {
+ else if (!manager_authorize(dst, ADVANCED_AUDIO_UUID, auth_cb_old,
+ session, &session->pending_auth)) {
avdtp_unref(session);
goto drop;
}