aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-09-28 20:27:25 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-09-28 20:27:25 +0300
commit2aa96d090ad5d0428c0355a88ff543cab303f106 (patch)
treebec69e26ac4e258088dd2d138be6f9ea59a62d8f
parent592570fb39f52f1d766aede5f84838e0dc7f4c87 (diff)
Adapt to renaming butl::casecmp() to icasecmp()
-rw-r--r--bpkg/archive.cxx2
-rw-r--r--bpkg/fetch-git.cxx2
-rw-r--r--bpkg/manifest-utility.cxx2
-rw-r--r--bpkg/utility.hxx4
4 files changed, 5 insertions, 5 deletions
diff --git a/bpkg/archive.cxx b/bpkg/archive.cxx
index f4a6405..358da42 100644
--- a/bpkg/archive.cxx
+++ b/bpkg/archive.cxx
@@ -31,7 +31,7 @@ namespace bpkg
bsdtar (const char* p)
{
const char* l (path::traits_type::find_leaf (p));
- return l != nullptr && casecmp (l, "bsdtar", 6) == 0;
+ return l != nullptr && icasecmp (l, "bsdtar", 6) == 0;
}
#endif
diff --git a/bpkg/fetch-git.cxx b/bpkg/fetch-git.cxx
index 6638399..abfed42 100644
--- a/bpkg/fetch-git.cxx
+++ b/bpkg/fetch-git.cxx
@@ -421,7 +421,7 @@ namespace bpkg
// details).
//
#ifdef _WIN32
- if (casecmp (u, "file://", 7) == 0 && u[7] != '/')
+ if (icasecmp (u, "file://", 7) == 0 && u[7] != '/')
u.insert (7, 1, '/');
#endif
diff --git a/bpkg/manifest-utility.cxx b/bpkg/manifest-utility.cxx
index bf4956b..29025d3 100644
--- a/bpkg/manifest-utility.cxx
+++ b/bpkg/manifest-utility.cxx
@@ -28,7 +28,7 @@ namespace bpkg
// Ignore the character case for consistency with a case insensitivity of
// URI schemes some of which we may support in the future.
//
- if (casecmp (s, "sys:", 4) == 0)
+ if (icasecmp (s, "sys:", 4) == 0)
{
s += 4;
return package_scheme::sys;
diff --git a/bpkg/utility.hxx b/bpkg/utility.hxx
index 2332587..484b394 100644
--- a/bpkg/utility.hxx
+++ b/bpkg/utility.hxx
@@ -14,7 +14,7 @@
#include <libbutl/ft/lang.hxx>
-#include <libbutl/utility.mxx> // casecmp(), reverse_iterate(), etc
+#include <libbutl/utility.mxx> // icasecmp(), reverse_iterate(), etc
#include <libbutl/filesystem.mxx>
#include <libbutl/default-options.mxx>
@@ -38,7 +38,7 @@ namespace bpkg
// <libbutl/utility.mxx>
//
- using butl::casecmp;
+ using butl::icasecmp;
using butl::reverse_iterate;
using butl::make_guard;