[glib/glib-2-54] socketlistener: fix event signature in vfunc
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-54] socketlistener: fix event signature in vfunc
- Date: Mon, 25 Dec 2017 08:13:26 +0000 (UTC)
commit 42ef8e9d32c387b94c275346657840870e80bf37
Author: Christian Hergert <chergert redhat com>
Date: Sat Dec 23 18:50:50 2017 -0800
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gsocketlistener.h b/gio/gsocketlistener.h
index 687fab3..e5185c2 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]