joined some lines into one

This commit is contained in:
Bob Polis 2020-04-19 14:25:35 +02:00
parent 39badd5582
commit 363424f15a

View File

@ -100,9 +100,7 @@ void socketstream::make_server(const socket_address& sa) {
socketstream socketstream::accept() const {
socketstream peer;
socklen_t len = sizeof(struct sockaddr_storage);
int active_socket = ::accept(_socket,
reinterpret_cast<struct sockaddr*>(&peer._sa),
&len);
int active_socket = ::accept(_socket, reinterpret_cast<struct sockaddr*>(&peer._sa), &len);
throw_if_min1(active_socket);
peer._socket = active_socket;
peer._domain = _domain;