SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View 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;