]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make it work on w32
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 19 Dec 2005 20:03:37 +0000 (20:03 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 19 Dec 2005 20:03:37 +0000 (20:03 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@174 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_event.c

index 5ebf65c12d7d5cbef0bce26e56c581a1c3bb6939..2086045f33d0ee209a19036480ea51358f20f4a5 100644 (file)
@@ -198,8 +198,8 @@ SWITCH_DECLARE(switch_status) switch_event_reserve_subclass_detailed(char *owner
 
 SWITCH_DECLARE(switch_status) switch_event_shutdown(void)
 {
-       THREAD_RUNNING = -1;
        switch_event *event;
+       THREAD_RUNNING = -1;
 
        if (switch_event_create(&event, SWITCH_EVENT_EVENT_SHUTDOWN) == SWITCH_STATUS_SUCCESS) {
                switch_event_add_header(event, "event_info", "Event System Shutting Down");
@@ -366,7 +366,7 @@ SWITCH_DECLARE(switch_status) switch_event_dup(switch_event **event, switch_even
 
 SWITCH_DECLARE(switch_status) switch_event_serialize(switch_event *event, char *buf, size_t buflen, char *fmt, ...)
 {
-       int len;
+       size_t len;
        switch_event_header *hp;
     char *data = NULL;
     int ret = 0;