isimodem: use ofono_call initializer

This commit is contained in:
Lucas De Marchi 2011-02-01 15:12:49 -02:00 committed by Marcel Holtmann
parent 641a6d98be
commit 0ca07330f4
1 changed files with 3 additions and 3 deletions

View File

@ -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);