From: Filip Hejsek Date: Fri, 12 Sep 2025 22:58:35 +0000 (+0200) Subject: ui/gtk: Fix callback function signature X-Git-Tag: v10.2.0-rc1~79^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c187a67c9dcdece58138f4df5ca4dd846934eddc;p=thirdparty%2Fqemu.git ui/gtk: Fix callback function signature The correct type for opaque pointer is gpointer, not gpointer * (which is a pointer to a pointer). Signed-off-by: Filip Hejsek Reviewed-by: Alex Bennée Reviewed-by: Michael Tokarev Signed-off-by: Michael Tokarev --- diff --git a/ui/gtk.c b/ui/gtk.c index 9a08cadc88f..48571bedbf5 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -766,9 +766,9 @@ static gboolean gd_render_event(GtkGLArea *area, GdkGLContext *context, } static void gd_resize_event(GtkGLArea *area, - gint width, gint height, gpointer *opaque) + gint width, gint height, gpointer opaque) { - VirtualConsole *vc = (void *)opaque; + VirtualConsole *vc = opaque; double pw = width, ph = height; double sx = vc->gfx.scale_x, sy = vc->gfx.scale_y; GdkWindow *window = gtk_widget_get_window(GTK_WIDGET(area));