diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-12-06 18:12:30 -0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-12-10 12:59:26 -0600 |
commit | 5ca42255c5acebae7fe05d155d09673e10d0fb6a (patch) | |
tree | 1234db0436a0928baf01e09a06a13b4428829e04 /drivers | |
parent | 8dec9a989b52b2783b3736affa11f4ff26f86628 (diff) | |
download | ofono-5ca42255c5acebae7fe05d155d09673e10d0fb6a.tar.bz2 |
atmodem: use macros for CLIP validity
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/atmodem/voicecall.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/atmodem/voicecall.c b/drivers/atmodem/voicecall.c index c04bd69e..a2ee49d8 100644 --- a/drivers/atmodem/voicecall.c +++ b/drivers/atmodem/voicecall.c @@ -39,6 +39,8 @@ #include "gatchat.h" #include "gatresult.h" +#include "common.h" + #include "atmodem.h" /* Amount of ms we wait between CLCC calls */ @@ -710,9 +712,9 @@ static void clip_notify(GAtResult *result, gpointer user_data) return; if (strlen(num) > 0) - validity = 0; + validity = CLIP_VALIDITY_VALID; else - validity = 2; + validity = CLIP_VALIDITY_NOT_AVAILABLE; /* Skip subaddr, satype and alpha */ g_at_result_iter_skip_next(&iter); |