aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/linkedlists.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-06 16:51:30 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-06 16:51:30 +0000
commit2d0a6c51483740476f1779a057b18db0e824b677 (patch)
tree2001e65ec74be018ab250f36f74277d10d442a30 /include/asterisk/linkedlists.h
parenta7d42fa13020076280a23886babc1bc7257b504d (diff)
Merged revisions 78184 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r78184 | russell | 2007-08-06 11:50:54 -0500 (Mon, 06 Aug 2007) | 5 lines Fix the return value of AST_LIST_REMOVE(). This shouldn't be causing any problems, though, because the only code that uses the return value only checks to see if it is NULL. (closes issue #10390, pointed out by mihai) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78185 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/linkedlists.h')
-rw-r--r--include/asterisk/linkedlists.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/linkedlists.h b/include/asterisk/linkedlists.h
index 257a4688d..b503f5b75 100644
--- a/include/asterisk/linkedlists.h
+++ b/include/asterisk/linkedlists.h
@@ -748,7 +748,7 @@ struct { \
while (curelm && (curelm->field.next != (elm))) \
curelm = curelm->field.next; \
if (curelm) { \
- __res = curelm; \
+ __res = (elm); \
curelm->field.next = (elm)->field.next; \
if ((head)->last == (elm)) \
(head)->last = curelm; \