mirror of git://git.sysmocom.de/ofono
hfpmodem: use ofono_call initializer
This commit is contained in:
parent
0013199bc4
commit
a6d15c6a64
|
@ -96,10 +96,12 @@ static struct ofono_call *create_call(struct ofono_voicecall *vc, int type,
|
||||||
struct ofono_call *call;
|
struct ofono_call *call;
|
||||||
|
|
||||||
/* Generate a call structure for the waiting call */
|
/* Generate a call structure for the waiting call */
|
||||||
call = g_try_new0(struct ofono_call, 1);
|
call = g_try_new(struct ofono_call, 1);
|
||||||
if (call == NULL)
|
if (call == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
ofono_call_init(call);
|
||||||
|
|
||||||
call->id = ofono_voicecall_get_next_callid(vc);
|
call->id = ofono_voicecall_get_next_callid(vc);
|
||||||
call->type = type;
|
call->type = type;
|
||||||
call->direction = direction;
|
call->direction = direction;
|
||||||
|
|
Loading…
Reference in New Issue