shill: Top-level files a-e: Switch pointer/ref spacing
Switch to Chrome style spacing.
BUG=chromium:501026
TEST=Unit tests
Change-Id: Idb7252202e142098999fe0672712aded7d369259
Reviewed-on: https://chromium-review.googlesource.com/278038
Reviewed-by: Rebecca Silberstein <silberst@chromium.org>
Commit-Queue: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
diff --git a/arp_packet.cc b/arp_packet.cc
index ae14ac6..00992fd 100644
--- a/arp_packet.cc
+++ b/arp_packet.cc
@@ -21,8 +21,8 @@
remote_ip_address_(IPAddress::kFamilyUnknown) {}
ArpPacket::ArpPacket(
- const IPAddress &local_ip, const IPAddress &remote_ip,
- const ByteString &local_mac, const ByteString &remote_mac)
+ const IPAddress& local_ip, const IPAddress& remote_ip,
+ const ByteString& local_mac, const ByteString& remote_mac)
: local_ip_address_(local_ip),
remote_ip_address_(remote_ip),
local_mac_address_(local_mac),
@@ -50,7 +50,7 @@
// +-----------------------------------------------------------------------+
// | Target IP Address (of length "Protocol Length")... |
// +-----------------------------------------------------------------------+
-bool ArpPacket::Parse(const ByteString &packet) {
+bool ArpPacket::Parse(const ByteString& packet) {
arphdr header;
if (packet.GetLength() < sizeof(header)) {
LOG(ERROR) << "Packet size " << packet.GetLength()
@@ -117,7 +117,7 @@
}
// Output a payload from local parameters.
-bool ArpPacket::FormatRequest(ByteString *packet) const {
+bool ArpPacket::FormatRequest(ByteString* packet) const {
if (!local_ip_address_.IsValid() || !remote_ip_address_.IsValid()) {
LOG(ERROR) << "Local or remote IP address is not valid.";
return false;
@@ -153,7 +153,7 @@
header.ar_pln = ip_address_length;
header.ar_op = htons(ARPOP_REQUEST);
- *packet = ByteString(reinterpret_cast<const unsigned char *>(&header),
+ *packet = ByteString(reinterpret_cast<const unsigned char*>(&header),
sizeof(header));
packet->Append(local_mac_address_);