fix windows compiler warnings

This commit is contained in:
Jeff Lenk 2013-09-21 16:22:05 -05:00
parent a9330e6b8c
commit 835594fe9e
4 changed files with 5 additions and 3 deletions

View 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);
/*!

View 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

View 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;

View 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;
}