mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 09:32:34 +00:00
win32
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15964 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1ebe0f84f8
commit
319e2328f2
@ -401,8 +401,8 @@ static int comp_callback(void *pArg, int argc, char **argv, char **columnNames)
|
|||||||
{
|
{
|
||||||
struct helper *h = (struct helper *) pArg;
|
struct helper *h = (struct helper *) pArg;
|
||||||
char *target = NULL, *str = NULL, *cur = NULL;
|
char *target = NULL, *str = NULL, *cur = NULL;
|
||||||
switch_size_t x, y;
|
switch_size_t x, y, i;
|
||||||
int i;
|
|
||||||
|
|
||||||
if (argc > 0) target = argv[0];
|
if (argc > 0) target = argv[0];
|
||||||
if (argc > 1) str = argv[1];
|
if (argc > 1) str = argv[1];
|
||||||
@ -947,8 +947,11 @@ SWITCH_DECLARE(void) switch_console_loop(void)
|
|||||||
{
|
{
|
||||||
|
|
||||||
char cmd[2048] = "";
|
char cmd[2048] = "";
|
||||||
int32_t x = 0, activity = 1;
|
int32_t activity = 1;
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
int x = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
gethostname(hostname, sizeof(hostname));
|
gethostname(hostname, sizeof(hostname));
|
||||||
|
|
||||||
while (running) {
|
while (running) {
|
||||||
@ -1056,7 +1059,7 @@ SWITCH_DECLARE(switch_status_t) switch_console_init(switch_memory_pool_t *pool)
|
|||||||
{
|
{
|
||||||
switch_mutex_init(&globals.func_mutex, SWITCH_MUTEX_NESTED, pool);
|
switch_mutex_init(&globals.func_mutex, SWITCH_MUTEX_NESTED, pool);
|
||||||
switch_core_hash_init(&globals.func_hash, pool);
|
switch_core_hash_init(&globals.func_hash, pool);
|
||||||
switch_console_add_complete_func("::console::list_uuid", switch_console_list_uuid);
|
switch_console_add_complete_func("::console::list_uuid", (switch_console_complete_callback_t)switch_console_list_uuid);
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user