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

Unified Diff: runtime/bin/socket_win.cc

Issue 2935483002: Update Fuchsia-specific code to use the new MX_ error names (Closed)
Patch Set: Created 3 years, 6 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_win.cc
diff --git a/runtime/bin/socket_win.cc b/runtime/bin/socket_win.cc
index 3e31350b95f00a4df9f6b36db57fb350289e85e2..21e2b20092533c5b4a037819ffc6edd262a37e4e 100644
--- a/runtime/bin/socket_win.cc
+++ b/runtime/bin/socket_win.cc
@@ -48,7 +48,7 @@ static intptr_t Create(const RawAddr& addr) {
l.l_linger = 10;
int status = setsockopt(s, SOL_SOCKET, SO_LINGER, reinterpret_cast<char*>(&l),
sizeof(l));
- if (status != NO_ERROR) {
+ if (status != MX_OK) {
zra 2017/06/09 19:24:25 ditto
FATAL("Failed setting SO_LINGER on socket");
}
@@ -66,7 +66,7 @@ static intptr_t Connect(intptr_t fd,
int status =
bind(s, &bind_addr.addr, SocketAddress::GetAddrLength(bind_addr));
- if (status != NO_ERROR) {
+ if (status != MX_OK) {
int rc = WSAGetLastError();
handle->mark_closed(); // Destructor asserts that socket is marked closed.
handle->Release();

Powered by Google App Engine
This is Rietveld 408576698