From 8213793f341e6052d04aa24bba7bcf1be3e25ed5 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sat, 23 Dec 2017 18:50:50 -0800 Subject: [PATCH] socketlistener: fix event signature in vfunc The GSocketListener::event signal has a type of GSocketListenerEvent, which is an enum. However, the vfunc signature had a pointer, with different sizing requirements. Given the alignment and prompostion of some systems, you may still get the same call-site layout, but that is not guaranteed. This fixes the parameter to have the proper enumeration. https://bugzilla.gnome.org/show_bug.cgi?id=791906 --- gio/gsocketlistener.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gsocketlistener.h b/gio/gsocketlistener.h index 687fab3d4..e5185c28d 100644 --- a/gio/gsocketlistener.h +++ b/gio/gsocketlistener.h @@ -62,7 +62,7 @@ struct _GSocketListenerClass void (* changed) (GSocketListener *listener); void (* event) (GSocketListener *listener, - GSocketListenerEvent *event, + GSocketListenerEvent event, GSocket *socket); /* Padding for future expansion */ -- 2.11.4.GIT