mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-26 05:52:16 +01:00
glib: return const pointer from glib__private__()
also, make the global variable "static const". That may allow the linker to place the variable into read-only memory, so we are a bit more confident that it cannot be modified.
This commit is contained in:
@@ -36,10 +36,10 @@
|
||||
* Do not call this function; it is used to share private
|
||||
* API between glib, gobject, and gio.
|
||||
*/
|
||||
GLibPrivateVTable *
|
||||
const GLibPrivateVTable *
|
||||
glib__private__ (void)
|
||||
{
|
||||
static GLibPrivateVTable table = {
|
||||
static const GLibPrivateVTable table = {
|
||||
g_wakeup_new,
|
||||
g_wakeup_free,
|
||||
g_wakeup_get_pollfd,
|
||||
|
||||
Reference in New Issue
Block a user