diff options
author | malc <av1474@comtv.ru> | 2009-05-21 05:26:23 +0400 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2009-05-21 05:30:51 +0400 |
commit | 0a656f5f21553b9b69392d89e28d18361a0e3405 (patch) | |
tree | 4b0474b563efb39f9c131885e6cdc1bae3516601 /nbd.c | |
parent | 9f8fd69460b30bc3817deabd1d76455248b76da2 (diff) |
Cast pointer arguments of get/setsockopt, send to void * to keep GCC
from producing a warning about pointer type mismatches with Winsock
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'nbd.c')
-rw-r--r-- | nbd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -169,7 +169,8 @@ int tcp_socket_incoming(const char *address, uint16_t port) memcpy(&addr.sin_addr.s_addr, &in, sizeof(in)); opt = 1; - if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1) { + if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, + (const void *) &opt, sizeof(opt)) == -1) { goto error; } |