Revision
16013
Author
jlenk
Date
2009-12-21 21:55:29 -0600 (Mon, 21 Dec 2009)

Log Message

FSBUILD-221 - fix several trivial warnings

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/applications/mod_esf/mod_esf.c (16012 => 16013)


--- freeswitch/trunk/src/mod/applications/mod_esf/mod_esf.c	2009-12-21 22:48:33 UTC (rev 16012)
+++ freeswitch/trunk/src/mod/applications/mod_esf/mod_esf.c	2009-12-22 03:55:29 UTC (rev 16013)
@@ -136,7 +136,7 @@
 		goto fail;
 	}
 
-	if (switch_mcast_hops(socket, mcast_ttl) != SWITCH_STATUS_SUCCESS) {
+	if (switch_mcast_hops(socket, (uint8_t)mcast_ttl) != SWITCH_STATUS_SUCCESS) {
 		switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Mutlicast TTL set failed\n");
 		goto fail;
 	}

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c (16012 => 16013)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2009-12-21 22:48:33 UTC (rev 16012)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2009-12-22 03:55:29 UTC (rev 16013)
@@ -2070,7 +2070,7 @@
 		}
 		if (strcasecmp(tech_pvt->read_impl.iananame, tech_pvt->iananame) ||
 			tech_pvt->read_impl.samples_per_second != tech_pvt->rm_rate ||
-			tech_pvt->codec_ms != tech_pvt->read_impl.microseconds_per_packet / 1000) {
+			tech_pvt->codec_ms != (uint32_t)tech_pvt->read_impl.microseconds_per_packet / 1000) {
 			
 			switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_DEBUG, "Changing Codec from %s@%dms to %s@%dms\n",
 							  tech_pvt->read_impl.iananame, tech_pvt->read_impl.microseconds_per_packet / 1000, 

Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey_core_db/mod_spidermonkey_core_db.c (16012 => 16013)


--- freeswitch/trunk/src/mod/languages/mod_spidermonkey_core_db/mod_spidermonkey_core_db.c	2009-12-21 22:48:33 UTC (rev 16012)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey_core_db/mod_spidermonkey_core_db.c	2009-12-22 03:55:29 UTC (rev 16013)
@@ -288,7 +288,7 @@
 {
 	struct db_obj *dbo = JS_GetPrivate(cx, obj);
 	JSBool status;
-	uint32 param_index = -1;
+	int32 param_index = -1;
     char *param_value = NULL;
 
 	*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
@@ -312,7 +312,7 @@
 	
 
 	/* convert args */
-	status = JS_ValueToECMAUint32(cx, argv[0], &param_index);
+	status = JS_ValueToECMAUint32(cx, argv[0], &(uint32)param_index);
 	switch_assert(status == JS_TRUE);
     param_value = JS_GetStringBytes(JS_ValueToString(cx, argv[1]));
 	if ((param_index < 1) || (NULL == param_value)) {
@@ -334,8 +334,8 @@
 {
 	struct db_obj *dbo = JS_GetPrivate(cx, obj);
 	JSBool status;
-	uint32 param_index = -1;
-	uint32 param_value = -1;
+	int32 param_index = -1;
+	int32 param_value = -1;
 
 	*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
 
@@ -356,9 +356,9 @@
 	}
 
 	/* convert args */
-	status = JS_ValueToECMAUint32(cx, argv[0], &param_index);
+	status = JS_ValueToECMAUint32(cx, argv[0], &(uint32)param_index);
 	switch_assert(status == JS_TRUE);
-	status = JS_ValueToECMAUint32(cx, argv[1], &param_value);
+	status = JS_ValueToECMAUint32(cx, argv[1], &(uint32)param_value);
 	switch_assert(status == JS_TRUE);
 
 	if (param_index < 1)  {