fixed type of socket handle (from int to CNetwork::Socket).

This commit is contained in:
crs 2002-05-22 16:56:06 +00:00
parent 5c760183ce
commit d893cc16a8
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ ISocket* CTCPListenSocket::accept()
if (status > 0 && (pfds[0].revents & CNetwork::kPOLLIN) != 0) {
CNetwork::Address addr;
CNetwork::AddressLength addrlen = sizeof(addr);
int fd = CNetwork::accept(m_fd, &addr, &addrlen);
CNetwork::Socket fd = CNetwork::accept(m_fd, &addr, &addrlen);
if (fd != CNetwork::Null) {
return new CTCPSocket(fd);
}