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

Unified Diff: tools/android/file_poller/file_poller.cc

Issue 214203002: Fix type conversion issues for Android x64 (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 6 years, 9 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
« no previous file with comments | « content/browser/indexed_db/indexed_db_leveldb_coding_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/file_poller/file_poller.cc
===================================================================
--- tools/android/file_poller/file_poller.cc (revision 258902)
+++ tools/android/file_poller/file_poller.cc (working copy)
@@ -103,7 +103,7 @@
socket_info.sin_port = htons(0);
if (bind(sockfd, (struct sockaddr*)&socket_info, sizeof(socket_info)) < 0)
PLOG(FATAL);
- int size = sizeof(socket_info);
+ socklen_t size = sizeof(socket_info);
getsockname(sockfd, (struct sockaddr*)&socket_info, &size);
printf("%d\n", ntohs(socket_info.sin_port));
// Using a pipe to ensure child is diconnected from the terminal before
« no previous file with comments | « content/browser/indexed_db/indexed_db_leveldb_coding_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698