From 668e5171132416eed6c266d94f3e7ce01f05aac6 Mon Sep 17 00:00:00 2001 From: Eugene Ostroukhov Date: Wed, 15 Jan 2025 13:22:03 -0800 Subject: [PATCH] fixup: refactor --- src/core/lib/event_engine/posix_engine/file_descriptors.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/lib/event_engine/posix_engine/file_descriptors.cc b/src/core/lib/event_engine/posix_engine/file_descriptors.cc index 34e34d7b62a3b..a82edfb0a84e0 100644 --- a/src/core/lib/event_engine/posix_engine/file_descriptors.cc +++ b/src/core/lib/event_engine/posix_engine/file_descriptors.cc @@ -86,7 +86,7 @@ IF_POSIX_SOCKET( return fd; } int flags; - int fdescriptor = *fd; + int fdescriptor = fd.fd(); if (nonblock) { flags = fcntl(fdescriptor, F_GETFL, 0); if (flags < 0) goto close_and_error; @@ -104,7 +104,7 @@ IF_POSIX_SOCKET( addr = EventEngine::ResolvedAddress(peer_addr.address(), len); return fd; close_and_error: - Close(fd.fd); + Close(*fd); return FileDescriptorResult::Error(); })