]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Wed Jan 28 12:01:13 CST 2009 Pekka Pessi <first.last@nokia.com>
authorMichael Jerris <mike@jerris.com>
Wed, 11 Feb 2009 17:15:37 +0000 (17:15 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 11 Feb 2009 17:15:37 +0000 (17:15 +0000)
  * su_timer.c: timers_remove() now set sut_heap_index to 0

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11850 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/su/su_timer.c

index 54b25b1b7c6f1c6831d99f5bcb68db8fb490152d..086cdea6dd386cd14c58760057c40d746a72a7c5 100644 (file)
@@ -1 +1 @@
-Wed Feb 11 11:14:50 CST 2009
+Wed Feb 11 11:15:31 CST 2009
index 7accc788d967473ad46a89711c16d72a784646ea..63f720c354b7cf646780ee177dee363795b5cd9e 100644 (file)
@@ -225,7 +225,7 @@ su_timer_set0(su_timer_queue_t *timers,
     return -1;
 
   if (SU_TIMER_IS_SET(t))
-    timers_remove(timers[0], t->sut_heap_index)->sut_heap_index = 0;
+    timers_remove(timers[0], t->sut_heap_index);
 
   t->sut_wakeup = wakeup;
   t->sut_arg = arg;
@@ -481,7 +481,7 @@ int su_timer_reset(su_timer_t *t)
     return -1;
 
   if (SU_TIMER_IS_SET(t))
-    timers_remove(timers[0], t->sut_heap_index)->sut_heap_index = 0;
+    timers_remove(timers[0], t->sut_heap_index);
 
   t->sut_wakeup = NULL;
   t->sut_arg = NULL;
@@ -526,7 +526,7 @@ int su_timer_expire(su_timer_queue_t * const timers,
       break;
     }
 
-    timers_remove(timers[0], 1)->sut_heap_index = 0;
+    timers_remove(timers[0], 1);
 
     f = t->sut_wakeup; t->sut_wakeup = NULL;
     assert(f);
@@ -609,7 +609,7 @@ int su_timer_reset_all(su_timer_queue_t *timers, su_task_r task)
     if (su_task_cmp(task, t->sut_task))
       continue;
 
-    timers_remove(timers[0], i)->sut_heap_index = 0;
+    timers_remove(timers[0], i);
 
     su_free(NULL, t);
     n++;