Codebase list virt-viewer / 6334416
util: Fix -Wsign-compare Acked-by: Jonathon Jongsma <jjongsma@redhat.com> Pavel Grunt 7 years ago
1 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
308308 static gchar *
309309 ctrl_key_to_gtk_key(const gchar *key)
310310 {
311 int i;
311 guint i;
312312
313313 static const struct {
314314 const char *ctrl;
542542 void
543543 virt_viewer_align_monitors_linear(GHashTable *displays)
544544 {
545 gint i, x = 0;
545 guint i;
546 gint x = 0;
546547 guint *sorted_displays;
547548 guint max_id = 0;
548549 guint ndisplays = 0;
642643 {
643644 GHashTable *displaymap;
644645 GHashTable *monitormap;
645 gint i, max_display_id = 0;
646 guint i, max_display_id = 0;
646647 gchar **tokens = NULL;
647648
648649 g_return_val_if_fail(nmonitors != 0, NULL);
697698 g_debug("Fullscreen config: mapping guest display %i to monitor %i", display, monitor);
698699 g_hash_table_insert(displaymap, GINT_TO_POINTER(display), GINT_TO_POINTER(monitor));
699700 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);
701702 }
702703
703704 for (i = 0; i < max_display_id; i++) {