From 6a44dd0f446ad2b17dc6150d910d007c757e266b Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 28 Sep 2019 18:02:40 +0300 Subject: Adapt to renaming butl::casecmp() to icasecmp() --- bdep/new.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bdep/new.cxx') diff --git a/bdep/new.cxx b/bdep/new.cxx index 23bc4bc..c77390f 100644 --- a/bdep/new.cxx +++ b/bdep/new.cxx @@ -27,7 +27,7 @@ namespace bdep { // License id to full name map. // - static const map licenses = { + static const map licenses = { {"MIT", "MIT License" }, {"BSD2", "Simplified 2-clause BSD License" }, {"BSD3", "New 3-clause BSD License" }, @@ -180,7 +180,7 @@ namespace bdep if (next ()) { - if (casecmp (l, "# " + n) == 0) + if (icasecmp (l, "# " + n) == 0) { if (next ()) { @@ -749,7 +749,7 @@ namespace bdep { if (!license_o) license = *license_e; - else if (casecmp (*license_e, license) != 0) + else if (icasecmp (*license_e, license) != 0) fail << "extracted license does not match requested" << info << "extracted: " << *license_e << info << "requested: " << license; @@ -957,7 +957,7 @@ namespace bdep } else { - if (casecmp (license, "BSD") == 0) + if (icasecmp (license, "BSD") == 0) warn << "BSD license name is ambiguous" << info << "consider using BSD3 for \"New 3-clause BSD License\""; } -- cgit v1.1