All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH trivial] ui/gtk: Fix callback function signature
@ 2025-09-12 22:58 Filip Hejsek
  2025-09-13 10:43 ` Alex Bennée
  2025-09-14 10:29 ` Michael Tokarev
  0 siblings, 2 replies; 3+ messages in thread
From: Filip Hejsek @ 2025-09-12 22:58 UTC (permalink / raw)
  To: qemu-devel; +Cc: Marc-André Lureau, qemu-trivial

The correct type for opaque pointer is gpointer,
not gpointer * (which is a pointer to a pointer).

Signed-off-by: Filip Hejsek <filip.hejsek@gmail.com>
---
This fixes a small mistake in callback function signature. The mistake
didn't cause any actual problems, so this patch is just code cleanup.
---
 ui/gtk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/gtk.c b/ui/gtk.c
index e91d093a49e5d05c10f1dbea5b9b94ff1389b456..f1d44402d8cd69045e0d2478b5f7a58b65d3a56c 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));

---
base-commit: 190d5d7fd725ff754f94e8e0cbfb69f279c82b5d
change-id: 20250913-fix-signature-831d40e2b091

Best regards,
-- 
Filip Hejsek <filip.hejsek@gmail.com>



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-09-14 10:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-12 22:58 [PATCH trivial] ui/gtk: Fix callback function signature Filip Hejsek
2025-09-13 10:43 ` Alex Bennée
2025-09-14 10:29 ` Michael Tokarev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.