SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
20
devel/commoncpp/patches/patch-src_cidr_cpp
Normal file
20
devel/commoncpp/patches/patch-src_cidr_cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- src/cidr.cpp.orig
|
||||
+++ src/cidr.cpp
|
||||
@@ -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 = strchr(const_cast<char *>(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 = strchr(const_cast<char *>(cp), '/');
|
||||
if(ep)
|
||||
*ep = 0;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue