[Sumover-dev] [svn commit] r4442 - vic/branches/mpeg4/net

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Sun May 10 10:58:29 BST 2009


Author: douglask
Date: Sun May 10 10:58:26 2009
New Revision: 4442

Modified:
   vic/branches/mpeg4/net/net-ipv6.cpp

Log:
Fix the following GCC-4.4 strchr() error:
    error: invalid conversion from "const char*" to "char*"
as described in the GCC 4.4 porting to documentation:
    http://gcc.gnu.org/gcc-4.4/porting_to.html


Modified: vic/branches/mpeg4/net/net-ipv6.cpp
==============================================================================
--- vic/branches/mpeg4/net/net-ipv6.cpp	(original)
+++ vic/branches/mpeg4/net/net-ipv6.cpp	Sun May 10 10:58:26 2009
@@ -254,7 +254,7 @@
 {
 	char *g_addr;
 	// Check for SSM src address: Src,Group
-	if ((g_addr=strchr(host,(int)','))!=NULL) {
+	if ((g_addr=(char *)strchr(host,(int)','))!=NULL) {
 		char s_addr_ssm[MAXHOSTNAMELEN];
 		int i=0;
 		while (&host[i]<g_addr) {



More information about the Sumover-dev mailing list