rpms/commoncpp2/EL-5 commoncpp2-1.7.3-gcc44.patch,NONE,1.1

Andreas Thienemann ixs at fedoraproject.org
Tue Apr 7 09:33:00 UTC 2009


Author: ixs

Update of /cvs/pkgs/rpms/commoncpp2/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29681

Added Files:
	commoncpp2-1.7.3-gcc44.patch 
Log Message:
Added patch to compile on gcc44, even though not needed on rhel5

commoncpp2-1.7.3-gcc44.patch:

--- NEW FILE commoncpp2-1.7.3-gcc44.patch ---
diff -up commoncpp2-1.7.3/src/cidr.cpp.orig commoncpp2-1.7.3/src/cidr.cpp
--- commoncpp2-1.7.3/src/cidr.cpp.orig	2009-04-06 21:24:07.857718325 +0200
+++ commoncpp2-1.7.3/src/cidr.cpp	2009-04-06 21:50:26.874088776 +0200
@@ -202,7 +202,7 @@ void IPV4Cidr::set(const char *cp)
 #if defined(_MSC_VER) && _MSC_VER >= 1500
 	ep = (char *)strchr(cp, '/');
 #else
- 	ep = strchr(cp, '/');
+ 	ep = (char *)strchr(cp, '/');
 #endif
 
 	if(ep)
@@ -332,7 +332,7 @@ void IPV6Cidr::set(const char *cp)
 	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;
 




More information about the fedora-extras-commits mailing list