mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Fix some compiler warnings when building on Haiku.
This commit is contained in:
parent
7f50113d83
commit
dbc17141d5
@ -36,19 +36,19 @@
|
||||
|
||||
namespace
|
||||
{
|
||||
#ifdef IPPROTO_SCTP
|
||||
// Checks whether the system can create SCTP sockets.
|
||||
bool CanCreateSCTPSocket()
|
||||
{
|
||||
#ifdef IPPROTO_SCTP
|
||||
int fd = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP);
|
||||
if (fd >= 0)
|
||||
{
|
||||
SocketEngine::Close(fd);
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool InspIRCd::BindPort(const std::shared_ptr<ConfigTag>& tag, const irc::sockets::sockaddrs& sa, std::vector<ListenSocket*>& old_ports, sa_family_t protocol)
|
||||
|
@ -244,9 +244,9 @@ ssize_t SocketEngine::SendTo(EventHandler* eh, const void* buf, size_t len, int
|
||||
return nbSent;
|
||||
}
|
||||
|
||||
ssize_t SocketEngine::WriteV(EventHandler* eh, const IOVector* iovec, int count)
|
||||
ssize_t SocketEngine::WriteV(EventHandler* eh, const IOVector* iov, int count)
|
||||
{
|
||||
ssize_t sent = writev(eh->GetFd(), iovec, count);
|
||||
ssize_t sent = writev(eh->GetFd(), iov, count);
|
||||
stats.UpdateWriteCounters(sent);
|
||||
return sent;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user