]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
automerge commit
authorAutomerge script <automerge@asterisk.org>
Thu, 23 Feb 2006 15:01:21 +0000 (15:01 +0000)
committerAutomerge script <automerge@asterisk.org>
Thu, 23 Feb 2006 15:01:21 +0000 (15:01 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@10870 65c4cc65-6c06-0410-ace0-fbb531ad65f3

dnsmgr.c
include/asterisk/linkedlists.h

index bc577c8529a567c1cfdfc4121e51fb62a2bdef39..f1a9dbe59977fc2e1757a9bd49cdd79df30eac88 100644 (file)
--- a/dnsmgr.c
+++ b/dnsmgr.c
@@ -307,7 +307,6 @@ static int do_reload(int loading)
        const char *enabled_value;
        int interval;
        int was_enabled;
-       pthread_attr_t attr;
        int res = -1;
 
        /* ensure that no refresh cycles run while the reload is in progress */
index ef54ed4446dab27c76468d88eb85a482db909c51..8cf251b8bf316977987d083eae3f8ad9f35d97d0 100644 (file)
@@ -274,9 +274,11 @@ struct {                                                           \
 #define AST_LIST_TRAVERSE_SAFE_BEGIN(head, var, field) {                               \
        typeof((head)->first) __list_next;                                              \
        typeof((head)->first) __list_prev = NULL;                                       \
-       for ((var) = (head)->first,  __list_next = (var) ? (var)->field.next : NULL;    \
+       typeof((head)->first) __new_prev = NULL;                                        \
+       for ((var) = (head)->first, __new_prev = (var),                                 \
+             __list_next = (var) ? (var)->field.next : NULL;                           \
             (var);                                                                     \
-            __list_prev = (var), (var) = __list_next,                                  \
+            __list_prev = __new_prev, (var) = __list_next,                             \
             __list_next = (var) ? (var)->field.next : NULL                             \
            )
 
@@ -292,6 +294,7 @@ struct {                                                            \
   previous entry, if any).
  */
 #define AST_LIST_REMOVE_CURRENT(head, field)                                           \
+       __new_prev = __list_prev;                                                       \
        if (__list_prev)                                                                \
                __list_prev->field.next = __list_next;                                  \
        else                                                                            \