aboutsummaryrefslogtreecommitdiff
path: root/dns/powerdns-devel/files/patch-modules_ldapbackend_utils_hh
diff options
context:
space:
mode:
Diffstat (limited to 'dns/powerdns-devel/files/patch-modules_ldapbackend_utils_hh')
-rw-r--r--dns/powerdns-devel/files/patch-modules_ldapbackend_utils_hh42
1 files changed, 0 insertions, 42 deletions
diff --git a/dns/powerdns-devel/files/patch-modules_ldapbackend_utils_hh b/dns/powerdns-devel/files/patch-modules_ldapbackend_utils_hh
deleted file mode 100644
index 6be2a52534e2..000000000000
--- a/dns/powerdns-devel/files/patch-modules_ldapbackend_utils_hh
+++ /dev/null
@@ -1,42 +0,0 @@
---- modules/ldapbackend/utils.hh.orig Sat Apr 23 23:40:15 2005
-+++ modules/ldapbackend/utils.hh Thu Jul 28 09:03:14 2005
-@@ -73,7 +73,7 @@
- }
-
-
--inline string ip2ptr4( string ip )
-+inline string ip2ptr4( const string& ip )
- {
- string ptr;
- vector<string> parts;
-@@ -89,7 +89,7 @@
- }
-
-
--inline string ip2ptr6( string ip )
-+inline string ip2ptr6( const string& ip )
- {
- string ptr, part, defstr;
- vector<string> parts;
-@@ -114,6 +114,21 @@
- }
-
- return ptr + "ip6.arpa";
-+}
-+
-+
-+inline string strbind( const string& search, const string& replace, string subject )
-+{
-+ size_t pos = 0;
-+
-+
-+ while( ( pos = subject.find( search, pos ) ) != string::npos )
-+ {
-+ subject.replace( pos, search.size(), replace );
-+ pos += replace.size();
-+ }
-+
-+ return subject;
- }
-
- #endif