X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=nbd.c;h=b397a5f48755e771ef9daf9c6f338c5a5fc00038;hb=93102fd6010c68320bc9a008c8cf70cb4a36d4b9;hp=1586ea7553dcf7262afe9287870e3d5e9dbf6210;hpb=b9e82a5946d902af445a53727c69b4851b1b20ff;p=qemu diff --git a/nbd.c b/nbd.c index 1586ea7..b397a5f 100644 --- a/nbd.c +++ b/nbd.c @@ -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; }