[Freeswitch-trunk] [commit] r13941 - freeswitch/trunk/src

FreeSWITCH SVN mikej at freeswitch.org
Wed Jun 24 09:27:28 PDT 2009


Author: mikej
Date: Wed Jun 24 11:27:28 2009
New Revision: 13941

Log:
fix build failure

Modified:
   freeswitch/trunk/src/switch_odbc.c

Modified: freeswitch/trunk/src/switch_odbc.c
==============================================================================
--- freeswitch/trunk/src/switch_odbc.c	(original)
+++ freeswitch/trunk/src/switch_odbc.c	Wed Jun 24 11:27:28 2009
@@ -215,9 +215,9 @@
 #endif
 }
 
+#ifdef SWITCH_HAVE_ODBC
 static int db_is_up(switch_odbc_handle_t *handle)
 {
-#ifdef SWITCH_HAVE_ODBC
 	int ret = 0;
 	SQLHSTMT stmt = NULL;
 	SQLLEN m = 0;
@@ -316,10 +316,8 @@
 	}
 
 	return ret;
-#else
-	return SWITCH_ODBC_FAIL;
-#endif
 }
+#endif
 
 SWITCH_DECLARE(switch_odbc_status_t) switch_odbc_statement_handle_free(switch_odbc_statement_handle_t * stmt)
 {



More information about the Freeswitch-trunk mailing list