]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix windows compiler warnings
authorJeff Lenk <jeff@jefflenk.com>
Sat, 21 Sep 2013 21:22:05 +0000 (16:22 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Sat, 21 Sep 2013 21:22:05 +0000 (16:22 -0500)
src/include/switch_core.h
src/switch_console.c
src/switch_core_file.c
src/switch_scheduler.c

index 58b26915318f51018ac00757d515c74de473554e..6d7d37e3bdf2cddf941ec4ca39e75399e8e46f08 100644 (file)
@@ -1718,7 +1718,7 @@ SWITCH_DECLARE(void) switch_core_db_test_reactive(switch_core_db_t *db, char *te
 SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file, const char *func, int line,
                                                                                                                          _In_ switch_file_handle_t *fh,
                                                                                                                          _In_opt_z_ const char *file_path,
-                                                                                                                         _In_ uint8_t channels,
+                                                                                                                         _In_ uint32_t channels,
                                                                                                                          _In_ uint32_t rate, _In_ unsigned int flags, _In_opt_ switch_memory_pool_t *pool);
 
 /*! 
index b2c003a6c6c986754a58175dc928d4590f17cd68..eea6d5510b6f55c3d63fd2079c1d50ba52cf3cd0 100644 (file)
@@ -33,7 +33,9 @@
 #include <switch.h>
 #include <switch_console.h>
 #include <switch_version.h>
+#ifndef _MSC_VER
 #include <switch_private.h>
+#endif
 #define CMD_BUFLEN 1024
 
 #ifdef SWITCH_HAVE_LIBEDIT
index bee78e26435e8c25f7d5e96dda695601445deaf3..4d6a0f7f197616d8a8b495f12c49554b95e7c314 100644 (file)
@@ -39,7 +39,7 @@
 SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file, const char *func, int line,
                                                                                                                          switch_file_handle_t *fh,
                                                                                                                          const char *file_path,
-                                                                                                                         uint8_t channels, uint32_t rate, unsigned int flags, switch_memory_pool_t *pool)
+                                                                                                                         uint32_t channels, uint32_t rate, unsigned int flags, switch_memory_pool_t *pool)
 {
        char *ext;
        switch_status_t status = SWITCH_STATUS_FALSE;
index b71821e2983acff6947f019cdc3e2578a36297a8..8e0a7d0963119315ee630058e482363d1340c8c5 100644 (file)
@@ -201,7 +201,7 @@ SWITCH_DECLARE(uint32_t) switch_scheduler_add_task(time_t task_runtime,
        switch_assert(func);
 
        if (task_runtime < now) {
-               container->task.repeat = task_runtime;
+               container->task.repeat = (uint32_t)task_runtime;
                task_runtime += now;
        }