[Spice-commits] 2 commits - server/red-worker.c server/sound.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 20 13:24:13 UTC 2018
server/red-worker.c | 1 -
server/sound.c | 5 +----
2 files changed, 1 insertion(+), 5 deletions(-)
New commits:
commit dbc4bcb24b3eca603451b924eaa215ece2dfcafd
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Wed Jun 20 11:19:48 2018 +0100
red-worker: Remove not used include
poll is not used anymore by this file.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Lukáš Hrázký <lhrazky at redhat.com>
diff --git a/server/red-worker.c b/server/red-worker.c
index 8424306d..c3733582 100644
--- a/server/red-worker.c
+++ b/server/red-worker.c
@@ -26,7 +26,6 @@
#include <errno.h>
#include <string.h>
#include <unistd.h>
-#include <poll.h>
#include <pthread.h>
#include <inttypes.h>
#include <glib.h>
commit d9689030ecf3ac81d273e242563d6243d49c27fd
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Wed Jun 20 11:11:45 2018 +0100
sound: Reduce conditional compilation
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Lukáš Hrázký <lhrazky at redhat.com>
diff --git a/server/sound.c b/server/sound.c
index e3891d2c..4965cf5b 100644
--- a/server/sound.c
+++ b/server/sound.c
@@ -761,16 +761,13 @@ static void record_channel_send_item(RedChannelClient *rcc, G_GNUC_UNUSED RedPip
static bool snd_channel_client_config_socket(RedChannelClient *rcc)
{
-#ifdef SO_PRIORITY
- int priority;
-#endif
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
- priority = 6;
+ int priority = 6;
if (setsockopt(stream->socket, SOL_SOCKET, SO_PRIORITY, (void*)&priority,
sizeof(priority)) == -1) {
if (errno != ENOTSUP) {
More information about the Spice-commits
mailing list