File commoncpp-charptr.diff of Package commoncpp2

--- src/cidr.cpp
+++ src/cidr.cpp
@@ -198,7 +198,7 @@
 	memset(&netmask, 0, sizeof(netmask));
 	bitset((bit_t *)&netmask, getMask(cp));
 	setString(cbuf, sizeof(cbuf), cp);
-	ep = strchr(cp, '/');
+	ep = (char*)strchr(cp, '/');
 	if(ep)
 		*ep = 0;
 
@@ -326,7 +326,7 @@
 	memset(&netmask, 0, sizeof(netmask));
 	bitset((bit_t *)&netmask, getMask(cp));
 	setString(cbuf, sizeof(cbuf), cp);
-	ep = strchr(cp, '/');
+	ep = (char*)strchr(cp, '/');
 	if(ep)
 		*ep = 0;
 
openSUSE Build Service is sponsored by