From 63732bdf5ec0edc75a58c39fbbb9e98f8f65d001 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 16 Dec 2005 21:13:18 +0000 Subject: [PATCH] Don't return a pointer to a const struct, since apps expect to be able to 2005-12-16 Matthias Clasen * glib/gmem.c (g_allocator_new): Don't return a pointer to a const struct, since apps expect to be able to modify it. (#324179, J. Ali Harlow) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-12 | 6 ++++++ glib/gmem.c | 2 +- 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 50260fc..17b917a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-12-16 Matthias Clasen + + * glib/gmem.c (g_allocator_new): Don't return a pointer to + a const struct, since apps expect to be able to modify it. + (#324179, J. Ali Harlow) + Tue Dec 13 10:13:32 2005 Tim Janik * glib/gatomic.h: added g_atomic_pointer_set() and g_atomic_int_set() diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 50260fc..17b917a 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2005-12-16 Matthias Clasen + + * glib/gmem.c (g_allocator_new): Don't return a pointer to + a const struct, since apps expect to be able to modify it. + (#324179, J. Ali Harlow) + Tue Dec 13 10:13:32 2005 Tim Janik * glib/gatomic.h: added g_atomic_pointer_set() and g_atomic_int_set() diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 50260fc..17b917a 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +2005-12-16 Matthias Clasen + + * glib/gmem.c (g_allocator_new): Don't return a pointer to + a const struct, since apps expect to be able to modify it. + (#324179, J. Ali Harlow) + Tue Dec 13 10:13:32 2005 Tim Janik * glib/gatomic.h: added g_atomic_pointer_set() and g_atomic_int_set() diff --git a/glib/gmem.c b/glib/gmem.c index 849ade5..84029f7 100644 --- a/glib/gmem.c +++ b/glib/gmem.c @@ -635,7 +635,7 @@ GAllocator* g_allocator_new (const gchar *name, guint n_preallocs) { - static const struct _GAllocator { + static struct _GAllocator { gchar *name; guint16 n_preallocs; guint is_unused : 1; -- 2.7.4