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

Unified Diff: runtime/bin/dbg_connection.cc

Issue 910183003: Reafctor to use 'const RawAddr&' or 'RawAddr*' in the eventhandler code (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor change Created 5 years, 10 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 | « no previous file | runtime/bin/secure_socket.h » ('j') | runtime/bin/socket_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dbg_connection.cc
diff --git a/runtime/bin/dbg_connection.cc b/runtime/bin/dbg_connection.cc
index a63cf44afc5b8a005d301a2f69ab16dabe601777..0b0b2177e3dc8ca2b96aa875b434bc8a37f63f2b 100644
--- a/runtime/bin/dbg_connection.cc
+++ b/runtime/bin/dbg_connection.cc
@@ -328,8 +328,9 @@ int DebuggerConnectionHandler::StartHandler(const char* address,
OSError *os_error;
AddressList<SocketAddress>* addresses =
Socket::LookupAddress(address, -1, &os_error);
- listener_fd_ = ServerSocket::CreateBindListen(
- addresses->GetAt(0)->addr(), port_number, 1);
+ RawAddr addr = addresses->GetAt(0)->addr();
+ SocketAddress::SetAddrPort(&addr, port_number);
+ listener_fd_ = ServerSocket::CreateBindListen(addr, 1);
delete addresses;
if (listener_fd_ < 0) {
fprintf(stderr, "%s", "Could not initialize debug socket\n");
« no previous file with comments | « no previous file | runtime/bin/secure_socket.h » ('j') | runtime/bin/socket_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698