summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2015-08-01 14:26:48 +0200
committerAlfred E. Heggestad <aeh@db.org>2015-08-01 14:26:48 +0200
commit190e43d590184138a728e163b8f54412908bc5e2 (patch)
tree512137aa1458a666f0eb2681381382c2f73586d1 /src
parent85ff1cc0e13e540fcc8e306253c321277df664f0 (diff)
ua: added prototype for ua_prev_call()
Diffstat (limited to 'src')
-rw-r--r--src/ua.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ua.c b/src/ua.c
index 2f86d33..0010de5 100644
--- a/src/ua.c
+++ b/src/ua.c
@@ -922,20 +922,21 @@ struct call *ua_call(const struct ua *ua)
return NULL;
}
+
struct call *ua_prev_call(const struct ua *ua)
{
struct le *le;
+ int prev = 0;
if (!ua)
return NULL;
- int prev = 0;
for (le = ua->calls.tail; le; le = le->prev) {
- if( prev == 1){
+ if ( prev == 1) {
struct call *call = le->data;
return call;
}
- if( prev == 0)
+ if ( prev == 0)
prev = 1;
}