From: Guus Sliepen Date: Sat, 23 Apr 2016 19:32:29 +0000 (+0200) Subject: Fix a compiler warning on Windows. X-Git-Tag: release-1.1pre12~3 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=9a66d7499ae2c838c25f9c6bfcc277c3fa231dea;p=tinc Fix a compiler warning on Windows. --- diff --git a/src/net_packet.c b/src/net_packet.c index 345175ea..21e6c2ac 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -722,7 +722,7 @@ static void send_udppacket(node_t *n, vpn_packet_t *origpkt) { #if defined(IPPROTO_IP) && defined(IP_TOS) case AF_INET: logger(DEBUG_TRAFFIC, LOG_DEBUG, "Setting IPv4 outgoing packet priority to %d", origpriority); - if(setsockopt(listen_socket[sock].udp.fd, IPPROTO_IP, IP_TOS, &origpriority, sizeof origpriority)) /* SO_PRIORITY doesn't seem to work */ + if(setsockopt(listen_socket[sock].udp.fd, IPPROTO_IP, IP_TOS, (void *)&origpriority, sizeof origpriority)) /* SO_PRIORITY doesn't seem to work */ logger(DEBUG_ALWAYS, LOG_ERR, "System call `%s' failed: %s", "setsockopt", sockstrerror(sockerrno)); break; #endif