Skip to content

Commit

Permalink
There is no SOCK_DEBUG_MESSAGE() macro, so don't call it.
Browse files Browse the repository at this point in the history
  • Loading branch information
guyharris committed Apr 25, 2019
1 parent fddbd52 commit 3e21907
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions sockutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,16 +341,13 @@ SOCKET sock_open(struct addrinfo *addrinfo, int server, int nconn, char *errbuf,
if (server)
{
/*
* Allow a new server to bind the socket after the old one exited,
* even if lingering sockets are still present.
* Allow a new server to bind the socket after the old one
* exited, even if lingering sockets are still present.
*
* Don't treat an error as a failure.
*/
int optval = 1;
if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)) < 0)
{
sock_geterror("socket(): ", errbuf, errbuflen);
/* dont treat an error as a failure */
SOCK_DEBUG_MESSAGE(errbuf);
}
(void)setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval));

#if defined(IPV6_V6ONLY) || defined(IPV6_BINDV6ONLY)
/*
Expand Down

0 comments on commit 3e21907

Please sign in to comment.