This commit is contained in:
Nav
2022-03-28 01:04:21 +01:00
parent b339bfe016
commit 0b34b6fbab

View File

@@ -24,8 +24,8 @@ namespace Bloom::DebugServers::Gdb
this->socketFileDescriptor = ::accept( this->socketFileDescriptor = ::accept(
serverSocketFileDescriptor, serverSocketFileDescriptor,
(sockaddr*) &(this->socketAddress), reinterpret_cast<sockaddr*>(&(this->socketAddress)),
(socklen_t*) &socketAddressLength reinterpret_cast<socklen_t*>(&socketAddressLength)
); );
if (this->socketFileDescriptor == -1) { if (this->socketFileDescriptor == -1) {
@@ -35,7 +35,7 @@ namespace Bloom::DebugServers::Gdb
::fcntl( ::fcntl(
this->socketFileDescriptor, this->socketFileDescriptor,
F_SETFL, F_SETFL,
fcntl(this->socketFileDescriptor, F_GETFL, 0) | O_NONBLOCK ::fcntl(this->socketFileDescriptor, F_GETFL, 0) | O_NONBLOCK
); );
this->epollInstance.addEntry(this->socketFileDescriptor, static_cast<std::uint16_t>(EpollEvent::READ_READY)); this->epollInstance.addEntry(this->socketFileDescriptor, static_cast<std::uint16_t>(EpollEvent::READ_READY));