diff options
author | Alfred E. Heggestad <aeh@db.org> | 2015-08-01 14:26:48 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2015-08-01 14:26:48 +0200 |
commit | 190e43d590184138a728e163b8f54412908bc5e2 (patch) | |
tree | 512137aa1458a666f0eb2681381382c2f73586d1 /src | |
parent | 85ff1cc0e13e540fcc8e306253c321277df664f0 (diff) |
ua: added prototype for ua_prev_call()
Diffstat (limited to 'src')
-rw-r--r-- | src/ua.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; } |