[Freeswitch-svn] [commit] r5085 - in freeswitch/trunk/src/mod: applications/mod_commands applications/mod_dptools applications/mod_enum applications/mod_rss codecs/mod_g726

Freeswitch SVN mikej at freeswitch.org
Thu May 3 22:09:24 EDT 2007


Author: mikej
Date: Thu May  3 22:09:24 2007
New Revision: 5085

Modified:
   freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
   freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c
   freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c
   freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c
   freeswitch/trunk/src/mod/codecs/mod_g726/mod_g726.c

Log:
warnings cleanup.

Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	Thu May  3 22:09:24 2007
@@ -713,7 +713,7 @@
 		switch_core_session_rwunlock(caller_session);
 	}
 
-	return SWITCH_STATUS_SUCCESS;;
+	return SWITCH_STATUS_SUCCESS;
 }
 
 static void sch_api_callback(switch_scheduler_task_t *task)

Modified: freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	Thu May  3 22:09:24 2007
@@ -399,7 +399,7 @@
 	assert(channel != NULL);
 
 	if (data && (level = strdup(data))) {
-		switch_event_types_t etype = SWITCH_LOG_DEBUG;
+		switch_log_level_t etype = SWITCH_LOG_DEBUG;
 
 		if ((log_str = strchr(level, ' '))) {
 			*log_str++ = '\0';

Modified: freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c	Thu May  3 22:09:24 2007
@@ -384,7 +384,8 @@
 	cur = dns_payload(pkt);
 	dns_getdn(pkt, &cur, end, dn, sizeof(dn));
 	dns_initparse(&p, NULL, pkt, cur, end);
-	p.dnsp_qcls = p.dnsp_qtyp = 0;
+	p.dnsp_qcls = 0;
+	p.dnsp_qtyp = 0;
 	qdn = dn;
 	nrr = 0;
 	while ((r = dns_nextrr(&p, &rr)) > 0) {

Modified: freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c	Thu May  3 22:09:24 2007
@@ -114,12 +114,10 @@
 				switch_core_speech_text_param_tts(dtb->sh, "voice", "next");
 				switch_set_flag(dtb, SFLAG_INFO);
 				return SWITCH_STATUS_BREAK;
-				break;
 			case '9':
 				switch_core_speech_text_param_tts(dtb->sh, "voice", dtb->voice);
 				switch_set_flag(dtb, SFLAG_INFO);
 				return SWITCH_STATUS_BREAK;
-				break;
 			case '2':
 				if (dtb->speed < 260) {
 					dtb->speed += 30;
@@ -490,7 +488,6 @@
 					break;
 				case '#':
 					goto main_menu;
-					break;
 				}
 			}
 		}

Modified: freeswitch/trunk/src/mod/codecs/mod_g726/mod_g726.c
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_g726/mod_g726.c	(original)
+++ freeswitch/trunk/src/mod/codecs/mod_g726/mod_g726.c	Thu May  3 22:09:24 2007
@@ -89,7 +89,6 @@
 		default:
 			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "invalid Encoding Size %d!\n", codec->implementation->encoded_bytes_per_frame);
 			return SWITCH_STATUS_FALSE;
-			break;
 		}
 
 		g726_init_state(&handle->context);



More information about the Freeswitch-svn mailing list