mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-12 18:17:59 +00:00
fix windows compiler warnings
This commit is contained in:
parent
a9330e6b8c
commit
835594fe9e
@ -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,
|
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_ switch_file_handle_t *fh,
|
||||||
_In_opt_z_ const char *file_path,
|
_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);
|
_In_ uint32_t rate, _In_ unsigned int flags, _In_opt_ switch_memory_pool_t *pool);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -33,7 +33,9 @@
|
|||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
#include <switch_console.h>
|
#include <switch_console.h>
|
||||||
#include <switch_version.h>
|
#include <switch_version.h>
|
||||||
|
#ifndef _MSC_VER
|
||||||
#include <switch_private.h>
|
#include <switch_private.h>
|
||||||
|
#endif
|
||||||
#define CMD_BUFLEN 1024
|
#define CMD_BUFLEN 1024
|
||||||
|
|
||||||
#ifdef SWITCH_HAVE_LIBEDIT
|
#ifdef SWITCH_HAVE_LIBEDIT
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file, const char *func, int line,
|
SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file, const char *func, int line,
|
||||||
switch_file_handle_t *fh,
|
switch_file_handle_t *fh,
|
||||||
const char *file_path,
|
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;
|
char *ext;
|
||||||
switch_status_t status = SWITCH_STATUS_FALSE;
|
switch_status_t status = SWITCH_STATUS_FALSE;
|
||||||
|
@ -201,7 +201,7 @@ SWITCH_DECLARE(uint32_t) switch_scheduler_add_task(time_t task_runtime,
|
|||||||
switch_assert(func);
|
switch_assert(func);
|
||||||
|
|
||||||
if (task_runtime < now) {
|
if (task_runtime < now) {
|
||||||
container->task.repeat = task_runtime;
|
container->task.repeat = (uint32_t)task_runtime;
|
||||||
task_runtime += now;
|
task_runtime += now;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user