Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Unified Diff: net/base/ip_endpoint.cc

Issue 1158923005: Use the exact-width integer types defined in <stdint.h> rather than (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweak comments. Exclude mime_sniffer*. Rebase. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/base/ip_endpoint.cc
diff --git a/net/base/ip_endpoint.cc b/net/base/ip_endpoint.cc
index 65c5d50a8a9749ad486d1fcbf544eee90269ca60..d260706c49534c3ff56ea04c651eb41c36dbb363 100644
--- a/net/base/ip_endpoint.cc
+++ b/net/base/ip_endpoint.cc
@@ -25,9 +25,9 @@ IPEndPoint::IPEndPoint() : port_(0) {}
IPEndPoint::~IPEndPoint() {}
-IPEndPoint::IPEndPoint(const IPAddressNumber& address, uint16 port)
- : address_(address),
- port_(port) {}
+IPEndPoint::IPEndPoint(const IPAddressNumber& address, uint16_t port)
+ : address_(address), port_(port) {
+}
IPEndPoint::IPEndPoint(const IPEndPoint& endpoint) {
address_ = endpoint.address_;
@@ -88,9 +88,9 @@ bool IPEndPoint::FromSockAddr(const struct sockaddr* sock_addr,
socklen_t sock_addr_len) {
DCHECK(sock_addr);
- const uint8* address;
+ const uint8_t* address;
size_t address_len;
- uint16 port;
+ uint16_t port;
if (!GetIPAddressFromSockAddr(sock_addr, sock_addr_len, &address,
&address_len, &port)) {
return false;

Powered by Google App Engine
This is Rietveld 408576698