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

Unified Diff: net/base/ip_address_number.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_address_number.cc
diff --git a/net/base/ip_address_number.cc b/net/base/ip_address_number.cc
index 1cbf5d4772b6645cb5ac92775bdce0b177b9ca55..06fc3ac29fba3925ff3ebeea7ff01c32e7848208 100644
--- a/net/base/ip_address_number.cc
+++ b/net/base/ip_address_number.cc
@@ -92,8 +92,7 @@ bool IsIPAddressReserved(const IPAddressNumber& host_addr) {
return false;
}
-std::string IPAddressToString(const uint8* address,
- size_t address_len) {
+std::string IPAddressToString(const uint8_t* address, size_t address_len) {
std::string str;
url::StdStringCanonOutput output(&str);
@@ -109,9 +108,9 @@ std::string IPAddressToString(const uint8* address,
return str;
}
-std::string IPAddressToStringWithPort(const uint8* address,
+std::string IPAddressToStringWithPort(const uint8_t* address,
size_t address_len,
- uint16 port) {
+ uint16_t port) {
std::string address_str = IPAddressToString(address, address_len);
if (address_len == kIPv6AddressSize) {
@@ -126,7 +125,7 @@ std::string IPAddressToString(const IPAddressNumber& addr) {
}
std::string IPAddressToStringWithPort(const IPAddressNumber& addr,
- uint16 port) {
+ uint16_t port) {
return IPAddressToStringWithPort(&addr.front(), addr.size(), port);
}

Powered by Google App Engine
This is Rietveld 408576698