Re: [PATCH spice-server] sound: Reduce conditional compilation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2018-06-20 at 13:52 +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  server/sound.c | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> 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) {

Acked-by: Lukáš Hrázký <lhrazky@xxxxxxxxxx>
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]