shill: 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: Ib4c4b5438a2e249777c9c1b6509f085ad5d00049
diff --git a/arp_packet.cc b/arp_packet.cc
index 2f0df2c..d4df035 100644
--- a/arp_packet.cc
+++ b/arp_packet.cc
@@ -21,6 +21,8 @@
#include <netinet/in.h>
#include <string.h>
+#include <limits>
+
#include "shill/logging.h"
namespace shill {
@@ -151,7 +153,7 @@
return false;
}
size_t ip_address_length = IPAddress::GetAddressLength(family);
- CHECK(ip_address_length < kuint8max);
+ CHECK(ip_address_length < std::numeric_limits<uint8_t>::max());
if (local_mac_address_.GetLength() != ETH_ALEN ||
remote_mac_address_.GetLength() != ETH_ALEN) {
LOG(ERROR) << "Local or remote MAC address length is incorrect.";