Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- server/sound.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/sound.c b/server/sound.c index 44b27dec..00b473a8 100644 --- a/server/sound.c +++ b/server/sound.c @@ -775,14 +775,13 @@ static void record_channel_send_item(RedChannelClient *rcc, G_GNUC_UNUSED RedPip static bool snd_channel_client_config_socket(RedChannelClient *rcc) { - int tos; RedStream *stream = red_channel_client_get_stream(rcc); RedClient *red_client = red_channel_client_get_client(rcc); MainChannelClient *mcc = red_client_get_main(red_client); #ifdef SO_PRIORITY int priority = 6; - if (setsockopt(stream->socket, SOL_SOCKET, SO_PRIORITY, (void*)&priority, + if (socket_setopt(stream->socket, SOL_SOCKET, SO_PRIORITY, (void*)&priority, sizeof(priority)) == -1) { if (errno != ENOTSUP) { red_channel_warning(red_channel_client_get_channel(rcc), @@ -791,8 +790,8 @@ static bool snd_channel_client_config_socket(RedChannelClient *rcc) } #endif - tos = IPTOS_LOWDELAY; - if (setsockopt(stream->socket, IPPROTO_IP, IP_TOS, (void*)&tos, sizeof(tos)) == -1) { + int tos = IPTOS_LOWDELAY; + if (socket_setopt(stream->socket, IPPROTO_IP, IP_TOS, (void*)&tos, sizeof(tos)) == -1) { if (errno != ENOTSUP) { red_channel_warning(red_channel_client_get_channel(rcc), "setsockopt failed, %s", -- 2.17.2 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel