Skip to contentSkip to conversation

voicecall: fix voicecalls_release_queue

PATCH In review Frédéric Danis 2 participants 2 messages Mar 24, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 voicecall: fix voicecalls_release_queue

voicecalls_release_queue uses struct ofono_call instead of struct voicecall (which is used in "calls" list parameter and function voicecalls_release_next)

---
 src/voicecall.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
src/voicecall.c +2 -2
index 4932ffa..b1d5586 100644
@@ -1070,7 +1070,7 @@ static void voicecalls_emit_call_added(struct ofono_voicecall *vc,
 static void voicecalls_release_queue(struct ofono_voicecall *vc, GSList *calls)
 {
 	GSList *l;
-	struct ofono_call *call;
+	struct voicecall *call;
 
 	g_slist_free(vc->release_list);
 	vc->release_list = NULL;
@@ -1078,7 +1078,7 @@ static void voicecalls_release_queue(struct ofono_voicecall *vc, GSList *calls)
 	for (l = calls; l; l = l->next) {
 		call = l->data;
 
-		if (call->status == CALL_STATUS_WAITING)
+		if (call->call->status == CALL_STATUS_WAITING)
 			continue;
 
 		vc->release_list = g_slist_prepend(vc->release_list, l->data);
Signature · 1 line
1.7.1
#1 lore raw

Hi Frédéric,

Quoted 7 lines · Frédéric Danis

voicecalls_release_queue uses struct ofono_call instead of struct voicecall (which is used in "calls" list parameter and function voicecalls_release_next)

---
 src/voicecall.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Good spot, patch has been applied, thanks.

Regards,
-Denis