diff options
author | Alex Vakulenko <avakulenko@google.com> | 2016-01-20 07:54:38 -0800 |
---|---|---|
committer | Alex Vakulenko <avakulenko@google.com> | 2016-01-20 07:54:38 -0800 |
commit | 654b62ceb7abdf51c725e3f2ea129240a05ac14c (patch) | |
tree | f470d7c75bb2f3bf58cf40b523cbc484c37fca30 | |
parent | ee6151b57c99f78e26913157aadcd76e49f1f04b (diff) | |
download | firewalld-654b62ceb7abdf51c725e3f2ea129240a05ac14c.tar.gz |
firewalld: Update libchrome APIs to r369476
The new libchrome has been ported from Chromium and some APIs have
changed. Make necessary changes at call sites.
Change-Id: Ib36ec8f828bfafcdaa57399cc1be12b00161b7ed
-rw-r--r-- | iptables.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/iptables.cc b/iptables.cc index e356ca9..4a8a3b8 100644 --- a/iptables.cc +++ b/iptables.cc @@ -57,10 +57,10 @@ bool IsValidInterfaceName(const std::string& iface) { if (iface.length() >= kInterfaceNameSize) { return false; } - if (base::StartsWithASCII(iface, "-", true /* case_sensitive */) || - base::EndsWith(iface, "-", true /* case_sensitive */) || - base::StartsWithASCII(iface, ".", true /* case_sensitive */) || - base::EndsWith(iface, ".", true /* case_sensitive */)) { + if (base::StartsWith(iface, "-", base::CompareCase::SENSITIVE) || + base::EndsWith(iface, "-", base::CompareCase::SENSITIVE) || + base::StartsWith(iface, ".", base::CompareCase::SENSITIVE) || + base::EndsWith(iface, ".", base::CompareCase::SENSITIVE)) { return false; } for (auto c : iface) { |