diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-02-01 15:12:49 -0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-02-01 18:31:43 +0100 |
commit | 0ca07330f4c772d48c7b49b0bd479a66da90cc0b (patch) | |
tree | 975ecc6ec1ad8f0c11bbf20c4a5ddeeb481ebdae /drivers/isimodem/voicecall.c | |
parent | 641a6d98be63584b74fde2f0616ab42ddd2bcc6f (diff) | |
download | ofono-0ca07330f4c772d48c7b49b0bd479a66da90cc0b.tar.bz2 |
isimodem: use ofono_call initializer
Diffstat (limited to 'drivers/isimodem/voicecall.c')
-rw-r--r-- | drivers/isimodem/voicecall.c | 6 |
1 files 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); |