stemodem: Use macro for clip validity.

This commit is contained in:
Marit Henriksen 2011-01-14 12:19:17 +01:00 committed by Marcel Holtmann
parent e732452eea
commit 84e942ace3
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ static struct ofono_call *create_call(struct ofono_voicecall *vc, int type,
call->direction = direction;
call->status = status;
if (clip != 2) {
if (clip != CLIP_VALIDITY_NOT_AVAILABLE) {
strncpy(call->phone_number.number, num,
OFONO_MAX_PHONE_NUMBER_LENGTH);
call->phone_number.type = num_type;