util: Fix -Wsign-compare
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
Pavel Grunt
7 years ago
308 | 308 | static gchar * |
309 | 309 | ctrl_key_to_gtk_key(const gchar *key) |
310 | 310 | { |
311 | int i; | |
311 | guint i; | |
312 | 312 | |
313 | 313 | static const struct { |
314 | 314 | const char *ctrl; |
542 | 542 | void |
543 | 543 | virt_viewer_align_monitors_linear(GHashTable *displays) |
544 | 544 | { |
545 | gint i, x = 0; | |
545 | guint i; | |
546 | gint x = 0; | |
546 | 547 | guint *sorted_displays; |
547 | 548 | guint max_id = 0; |
548 | 549 | guint ndisplays = 0; |
642 | 643 | { |
643 | 644 | GHashTable *displaymap; |
644 | 645 | GHashTable *monitormap; |
645 | gint i, max_display_id = 0; | |
646 | guint i, max_display_id = 0; | |
646 | 647 | gchar **tokens = NULL; |
647 | 648 | |
648 | 649 | g_return_val_if_fail(nmonitors != 0, NULL); |
697 | 698 | g_debug("Fullscreen config: mapping guest display %i to monitor %i", display, monitor); |
698 | 699 | g_hash_table_insert(displaymap, GINT_TO_POINTER(display), GINT_TO_POINTER(monitor)); |
699 | 700 | g_hash_table_insert(monitormap, GINT_TO_POINTER(monitor), GINT_TO_POINTER(display)); |
700 | max_display_id = MAX(display, max_display_id); | |
701 | max_display_id = MAX((guint) display, max_display_id); | |
701 | 702 | } |
702 | 703 | |
703 | 704 | for (i = 0; i < max_display_id; i++) { |