From 0ca07330f4c772d48c7b49b0bd479a66da90cc0b Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 1 Feb 2011 15:12:49 -0200 Subject: [PATCH] isimodem: use ofono_call initializer --- drivers/isimodem/voicecall.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/isimodem/voicecall.c b/drivers/isimodem/voicecall.c index 6a1e582a..12896f22 100644 --- a/drivers/isimodem/voicecall.c +++ b/drivers/isimodem/voicecall.c @@ -384,11 +384,11 @@ static int isi_call_status_to_clcc(const struct isi_call *call) static struct ofono_call isi_call_as_ofono_call(const struct isi_call *call) { - struct ofono_call ocall = { - call->id - }; + struct ofono_call ocall; struct ofono_phone_number *number = &ocall.phone_number; + ofono_call_init(&ocall); + ocall.id = call->id; ocall.type = 0; /* Voice call */ ocall.direction = call->mode_info & CALL_MODE_ORIGINATOR; ocall.status = isi_call_status_to_clcc(call);