[Freeswitch-trunk] [commit] r12646 - in freeswitch/trunk/src: . include

FreeSWITCH SVN mikej at freeswitch.org
Tue Mar 17 09:32:57 PDT 2009


Author: mikej
Date: Tue Mar 17 11:32:57 2009
New Revision: 12646

Log:
add code analysis tagging

Modified:
   freeswitch/trunk/src/include/switch_core.h
   freeswitch/trunk/src/switch_core.c

Modified: freeswitch/trunk/src/include/switch_core.h
==============================================================================
--- freeswitch/trunk/src/include/switch_core.h	(original)
+++ freeswitch/trunk/src/include/switch_core.h	Tue Mar 17 11:32:57 2009
@@ -566,7 +566,7 @@
 																		 _Inout_opt_ switch_memory_pool_t **pool, _In_opt_z_ const char *use_uuid);
 #define switch_core_session_request(_ep, _d, _p) switch_core_session_request_uuid(_ep, _d, _p, NULL)
 
-SWITCH_DECLARE(switch_status_t) switch_core_session_set_uuid(switch_core_session_t *session, const char *use_uuid);
+SWITCH_DECLARE(switch_status_t) switch_core_session_set_uuid(_In_ switch_core_session_t *session, _In_z_ const char *use_uuid);
 
 SWITCH_DECLARE(void) switch_core_session_perform_destroy(_Inout_ switch_core_session_t **session,
 														 _In_z_ const char *file, _In_z_ const char *func, _In_ int line);
@@ -584,7 +584,7 @@
 */
 SWITCH_DECLARE(uint32_t) switch_core_session_count(void);
 
-SWITCH_DECLARE(switch_size_t) switch_core_session_get_id(switch_core_session_t *session);
+SWITCH_DECLARE(switch_size_t) switch_core_session_get_id(_In_ switch_core_session_t *session);
 
 /*! 
   \brief Provide the current session_id

Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c	(original)
+++ freeswitch/trunk/src/switch_core.c	Tue Mar 17 11:32:57 2009
@@ -298,8 +298,8 @@
 	switch_channel_t *channel;
 	switch_frame_t *read_frame;
 
-	switch_assert(thread != NULL);
-	switch_assert(session != NULL);
+//	switch_assert(thread != NULL);
+//	switch_assert(session != NULL);
 
 	if (switch_core_session_read_lock(session) != SWITCH_STATUS_SUCCESS) {
 		return NULL;



More information about the Freeswitch-trunk mailing list