diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-29 19:37:36 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-29 19:37:36 +0000 |
commit | e740e948682a585ec1f3bf42d4356efc36b257cf (patch) | |
tree | 6dfd0510c1f94a78d171072ff35ad5f4d3a692c7 /net/base/net_util.cc | |
parent | 26a8f0fc3761ac666763624e70de322edb652bd2 (diff) | |
download | chromium_src-e740e948682a585ec1f3bf42d4356efc36b257cf.zip chromium_src-e740e948682a585ec1f3bf42d4356efc36b257cf.tar.gz chromium_src-e740e948682a585ec1f3bf42d4356efc36b257cf.tar.bz2 |
Stop using FALSE as it may not be available on some platforms.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6731058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79726 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_util.cc')
-rw-r--r-- | net/base/net_util.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/base/net_util.cc b/net/base/net_util.cc index 2123a0b..ed74748 100644 --- a/net/base/net_util.cc +++ b/net/base/net_util.cc @@ -2132,9 +2132,9 @@ bool IsLocalhost(const std::string& host) { } case kIPv6AddressSize: { - struct in6_addr sin6_addr;
- memcpy(&sin6_addr, &ip_number[0], kIPv6AddressSize);
- return IN6_IS_ADDR_LOOPBACK(&sin6_addr) != FALSE; + struct in6_addr sin6_addr; + memcpy(&sin6_addr, &ip_number[0], kIPv6AddressSize); + return !!IN6_IS_ADDR_LOOPBACK(&sin6_addr); } default: |