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

Unified Diff: tools/android/forwarder2/socket.cc

Issue 1549203002: Switch to standard integer types in tools/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « tools/android/forwarder2/socket.h ('k') | tools/android/heap_profiler/heap_dump.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/forwarder2/socket.cc
diff --git a/tools/android/forwarder2/socket.cc b/tools/android/forwarder2/socket.cc
index ae8a6c0075b20ab50432139128bbe993ac01fbda..c6073c195aa4a02e8d8c6a74fd8d726819f0e8ef 100644
--- a/tools/android/forwarder2/socket.cc
+++ b/tools/android/forwarder2/socket.cc
@@ -9,6 +9,7 @@
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
@@ -183,7 +184,7 @@ bool Socket::BindAndListen() {
memset(&addr, 0, sizeof(addr));
socklen_t addrlen = 0;
sockaddr* addr_ptr = NULL;
- uint16* port_ptr = NULL;
+ uint16_t* port_ptr = NULL;
if (family_ == AF_INET) {
addr_ptr = reinterpret_cast<sockaddr*>(&addr.addr4);
port_ptr = &addr.addr4.sin_port;
« no previous file with comments | « tools/android/forwarder2/socket.h ('k') | tools/android/heap_profiler/heap_dump.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698