summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-08-27 17:36:25 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-08-27 19:01:44 -0500
commite760b59ce9196c9d90cb0f8a8e461cbbb0cf5732 (patch)
tree94fc670fa551e874165a095fa9425b2a7025b517 /src
parentce79af6e5c370c8415a032c78167491a52dd0603 (diff)
downloadofono-e760b59ce9196c9d90cb0f8a8e461cbbb0cf5732.tar.bz2
voicecall: Switch to unsigned
Diffstat (limited to 'src')
-rw-r--r--src/voicecall.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index f0e612c4..1b415db9 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -179,8 +179,8 @@ static const char *time_to_str(const time_t *t)
return buf;
}
-static int voicecalls_num_with_status(struct ofono_voicecall *vc,
- int status)
+static unsigned int voicecalls_num_with_status(struct ofono_voicecall *vc,
+ int status)
{
GSList *l;
struct voicecall *v;
@@ -196,19 +196,19 @@ static int voicecalls_num_with_status(struct ofono_voicecall *vc,
return num;
}
-static int voicecalls_num_active(struct ofono_voicecall *vc)
+static unsigned int voicecalls_num_active(struct ofono_voicecall *vc)
{
return voicecalls_num_with_status(vc, CALL_STATUS_ACTIVE);
}
-static int voicecalls_num_held(struct ofono_voicecall *vc)
+static unsigned int voicecalls_num_held(struct ofono_voicecall *vc)
{
return voicecalls_num_with_status(vc, CALL_STATUS_HELD);
}
-static int voicecalls_num_connecting(struct ofono_voicecall *vc)
+static unsigned int voicecalls_num_connecting(struct ofono_voicecall *vc)
{
- int r = 0;
+ unsigned int r = 0;
r += voicecalls_num_with_status(vc, CALL_STATUS_DIALING);
r += voicecalls_num_with_status(vc, CALL_STATUS_ALERTING);