Re: [virt-viewer 2/2] app, cosmetic: remove one unneeded level of identation

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

 



Ack,

Thanks,
Pavel

On Mon, 2016-03-07 at 10:37 +0100, Fabiano Fidêncio wrote:
> Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
> ---
>  src/virt-viewer-app.c | 28 ++++++++++++++--------------
>  1 file changed, 14 insertions(+), 14 deletions(-)
> 
> diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
> index bbb4928..1cab1d9 100644
> --- a/src/virt-viewer-app.c
> +++ b/src/virt-viewer-app.c
> @@ -407,21 +407,21 @@ virt_viewer_app_parse_monitor_mappings(gchar
> **mappings, gsize nmappings)
>          if (monitor > nmonitors) {
>              g_warning("Initial monitor #%i for display #%i does not
> exist", monitor, display);
>              goto configerror;
> -        } else {
> -            /* config file format is 1-based, not 0-based */
> -            display--;
> -            monitor--;
> -
> -            if (g_hash_table_lookup_extended(displaymap,
> GINT_TO_POINTER(display), NULL, NULL) ||
> -                g_hash_table_lookup_extended(monitormap,
> GINT_TO_POINTER(monitor), NULL, NULL)) {
> -                g_warning("Invalid monitor-mapping configuration: a
> display or monitor id was specified twice");
> -                goto configerror;
> -            }
> -            g_debug("Fullscreen config: mapping guest display %i to
> monitor %i", display, monitor);
> -            g_hash_table_insert(displaymap,
> GINT_TO_POINTER(display), GINT_TO_POINTER(monitor));
> -            g_hash_table_insert(monitormap,
> GINT_TO_POINTER(monitor), GINT_TO_POINTER(display));
> -            max_display_id = MAX(display, max_display_id);
>          }
> +
> +        /* config file format is 1-based, not 0-based */
> +        display--;
> +        monitor--;
> +
> +        if (g_hash_table_lookup_extended(displaymap,
> GINT_TO_POINTER(display), NULL, NULL) ||
> +            g_hash_table_lookup_extended(monitormap,
> GINT_TO_POINTER(monitor), NULL, NULL)) {
> +            g_warning("Invalid monitor-mapping configuration: a
> display or monitor id was specified twice");
> +            goto configerror;
> +        }
> +        g_debug("Fullscreen config: mapping guest display %i to
> monitor %i", display, monitor);
> +        g_hash_table_insert(displaymap, GINT_TO_POINTER(display),
> GINT_TO_POINTER(monitor));
> +        g_hash_table_insert(monitormap, GINT_TO_POINTER(monitor),
> GINT_TO_POINTER(display));
> +        max_display_id = MAX(display, max_display_id);
>      }
>  
>      for (i = 0; i < max_display_id; i++) {

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux