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

Unified Diff: runtime/bin/socket_macos.cc

Issue 163903002: Prototype of I/O statistics for Observatory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: runtime/bin/socket_macos.cc
diff --git a/runtime/bin/socket_macos.cc b/runtime/bin/socket_macos.cc
index 815b0f7cfda4df746b76545a8f177a046102cd72..8e554794e0b5cab360d49c6fcdfa90cc908fbced 100644
--- a/runtime/bin/socket_macos.cc
+++ b/runtime/bin/socket_macos.cc
@@ -192,10 +192,6 @@ SocketAddress* Socket::GetRemotePeer(intptr_t fd, intptr_t* port) {
getpeername(fd,
&raw.addr,
&size))) {
- const int kBufferSize = 1024;
- char error_message[kBufferSize];
- strerror_r(errno, error_message, kBufferSize);
- Log::PrintErr("Error getpeername: %s\n", error_message);
return NULL;
}
*port = SocketAddress::GetAddrPort(&raw);

Powered by Google App Engine
This is Rietveld 408576698