Skip to contentSkip to conversation

android/health: Fix wrong user data passing in set_mcl_cb

PATCH Applied Ravi kumar Veeramally 2 participants 2 messages Jun 26, 2014 – Jun 27, 2014 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 android/health: Fix wrong user data passing in set_mcl_cb

It used to be channel, when set_mcl_cb refactored
it got changed to channed->dev.
commit 32180fa3a649ec26f9f3891a0ff5e4fe16592b91 introduced it.

---
 android/health.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
android/health.c +1 -1
index 42c9a6e..30a6166 100644
@@ -1341,7 +1341,7 @@ static void create_mcl_cb(struct mcap_mcl *mcl, GError *err, gpointer data)
 	channel->dev->mcl_conn = true;
 	info("MCL connected");
 
-	ret = set_mcl_cb(channel->dev->mcl, channel->dev, &gerr);
+	ret = set_mcl_cb(channel->dev->mcl, channel, &gerr);
 	if (!ret) {
 		error("health: error setting mdl callbacks: %s", gerr->message);
 		g_error_free(gerr);
Signature · 1 line
1.9.1
Applied
#1 lore raw

Hi Ravi,

Quoted 13 lines · On Friday 27 of June 2014 00:04:14 Ravi kumar Veeramally wrote:

It used to be channel, when set_mcl_cb refactored
it got changed to channed->dev.
commit 32180fa3a649ec26f9f3891a0ff5e4fe16592b91 introduced it.

---
 android/health.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
android/health.c +0 -0
index 42c9a6e..30a6166 100644

android/health.c static void create_mcl_cb(struct mcap_mcl *mcl, GError *err, gpointer data) · line 1347

Quoted 8 lines
android/health.c +1 -1
@@ -1341,7 +1341,7 @@ static void create_mcl_cb(struct mcap_mcl *mcl, GError *err, gpointer data)
 	channel->dev->mcl_conn = true;
 	info("MCL connected");
 
-	ret = set_mcl_cb(channel->dev->mcl, channel->dev, &gerr);
+	ret = set_mcl_cb(channel->dev->mcl, channel, &gerr);
 	if (!ret) {
 		error("health: error setting mdl callbacks: %s", gerr->message);
 		g_error_free(gerr);

Applied, thanks.

Signature · 2 lines
Best regards, 
Szymon Janc