[Freeswitch-svn] [commit] r12027 - in freeswitch/trunk: src/mod/applications/mod_lcr w32/Library

FreeSWITCH SVN robertj at freeswitch.org
Sat Feb 14 20:10:31 PST 2009


Author: robertj
Date: Sat Feb 14 22:10:31 2009
New Revision: 12027

Log:
Fixed VS2008 compiler warnings, including what clearly looks like a bug!

Modified:
   freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c
   freeswitch/trunk/w32/Library/FreeSwitchCore.2008.vcproj

Modified: freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c	Sat Feb 14 22:10:31 2009
@@ -565,7 +565,7 @@
 			switch_stream_handle_t order_by = { 0 };
 			switch_stream_handle_t pre_order = { 0 };
 			switch_stream_handle_t *thisorder = NULL;
-			char *reorder_by_rate = SWITCH_FALSE;
+			char *reorder_by_rate = NULL;
 			char *id_s = NULL;
 			char *custom_sql = NULL;
 			int argc, x = 0;
@@ -655,7 +655,7 @@
 					}
 				}
 				
-				if (!switch_strlen_zero("reorder_by_rate")) {
+				if (!switch_strlen_zero(reorder_by_rate)) {
 					profile->reorder_by_rate = switch_true(reorder_by_rate);
 				}
 				

Modified: freeswitch/trunk/w32/Library/FreeSwitchCore.2008.vcproj
==============================================================================
--- freeswitch/trunk/w32/Library/FreeSwitchCore.2008.vcproj	(original)
+++ freeswitch/trunk/w32/Library/FreeSwitchCore.2008.vcproj	Sat Feb 14 22:10:31 2009
@@ -72,7 +72,7 @@
 				Name="VCLinkerTool"
 				LinkLibraryDependencies="true"
 				OutputFile="$(SolutionDir)$(ConfigurationName)/FreeSwitch.dll"
-				LinkIncremental="1"
+				LinkIncremental="2"
 				AdditionalLibraryDirectories=""$(InputDir)..\..\libs\apr\$(OutDir)";"$(InputDir)..\..\libs\sqlite\$(OutDir) DLL";"$(InputDir)..\..\libs\apr-util\$(OutDir)";"$(InputDir)..\..\libs\apr-iconv\$(OutDir)";"$(InputDir)..\..\libs\libresample\win";"$(InputDir)..\..\libs\srtp\$(OutDir)""
 				AddModuleNamesToAssembly=""
 				GenerateDebugInformation="true"



More information about the Freeswitch-svn mailing list