diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-04-29 12:53:27 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-04-29 12:53:27 -0700 |
commit | 8b93cb4a9e485585d3e68579d9155b8eeb7e1e2f (patch) | |
tree | bf91cf1659a037deeae64afa3c77ca74a4edf68f /sockutils.c | |
parent | d2e9a27f2980957177a4e4befc54f524c8725d95 (diff) |
Squelch compiler warnings.
Diffstat (limited to 'sockutils.c')
-rw-r--r-- | sockutils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sockutils.c b/sockutils.c index 3acfabc7..d6ad4522 100644 --- a/sockutils.c +++ b/sockutils.c @@ -347,7 +347,8 @@ SOCKET sock_open(struct addrinfo *addrinfo, int server, int nconn, char *errbuf, * Don't treat an error as a failure. */ int optval = 1; - (void)setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)); + (void)setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, + (char *)&optval, sizeof (optval)); #if defined(IPV6_V6ONLY) || defined(IPV6_BINDV6ONLY) /* |