]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
variable type fixes and msvc tweaks
authorMichael Jerris <mike@jerris.com>
Wed, 26 Apr 2006 18:37:03 +0000 (18:37 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 26 Apr 2006 18:37:03 +0000 (18:37 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1262 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_channel.c
src/switch_core.c

index 1bc0113eb061f913989a392a55342f12ada10752..c5c65af6c571de7502460ddfe99bc920823fe366 100644 (file)
@@ -665,7 +665,9 @@ SWITCH_DECLARE(void) switch_channel_clear_state_handler(switch_channel *channel,
                        new_handlers[i++] = channel->state_handlers[index];
                }
        }
-       memset(channel->state_handlers, 0, sizeof(channel->state_handlers));
+       for (index = 0; index < SWITCH_MAX_STATE_HANDLERS; index++) {
+               channel->state_handlers[index] = NULL;
+       }
        for (index = 0; index < i; index++) {
                channel->state_handlers[index] = new_handlers[i];
        }
index 0fee18536926053865fccef3773dcc33cd196342..cba33350654259dcc80565824da476f548bd48a9 100644 (file)
@@ -2393,7 +2393,7 @@ static void *SWITCH_THREAD_FUNC switch_core_sql_thread(switch_thread *thread, vo
                }
                
                if (diff < freq) {
-                       diff = (switch_time_now() - last_commit) / 1000;
+                       diff = (uint32_t)((switch_time_now() - last_commit) / 1000);
                } 
 
                if (trans && (itterations == target || diff >= freq)) {