Revision
15964
Author
anthm
Date
2009-12-14 19:31:54 -0600 (Mon, 14 Dec 2009)

Log Message

win32

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_console.c (15963 => 15964)


--- freeswitch/trunk/src/switch_console.c	2009-12-15 01:31:17 UTC (rev 15963)
+++ freeswitch/trunk/src/switch_console.c	2009-12-15 01:31:54 UTC (rev 15964)
@@ -401,8 +401,8 @@
 {
 	struct helper *h = (struct helper *) pArg;
 	char *target = NULL, *str = NULL, *cur = NULL;
-	switch_size_t x, y;
-	int i;
+	switch_size_t x, y, i;
+
 	
 	if (argc > 0) target = argv[0];
 	if (argc > 1) str = argv[1];
@@ -947,8 +947,11 @@
 {
 
 	char cmd[2048] = "";
-	int32_t x = 0, activity = 1;	
-	
+	int32_t activity = 1;	
+#ifndef _MSC_VER
+	int x = 0;
+#endif	
+
 	gethostname(hostname, sizeof(hostname));
 
 	while (running) {
@@ -1056,7 +1059,7 @@
 {
 	switch_mutex_init(&globals.func_mutex, SWITCH_MUTEX_NESTED, 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;
 }