diff options
Diffstat (limited to 'misc/amanda26-server/files/patch-common-src::glib-util.c')
-rw-r--r-- | misc/amanda26-server/files/patch-common-src::glib-util.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/misc/amanda26-server/files/patch-common-src::glib-util.c b/misc/amanda26-server/files/patch-common-src::glib-util.c index 1d3b00558e0d..eb92dddcfc54 100644 --- a/misc/amanda26-server/files/patch-common-src::glib-util.c +++ b/misc/amanda26-server/files/patch-common-src::glib-util.c @@ -1,5 +1,5 @@ ---- common-src/glib-util.c.orig 2008-12-01 22:17:19.000000000 +0100 -+++ common-src/glib-util.c 2011-06-25 22:43:28.000000000 +0200 +--- common-src/glib-util.c.orig 2008-12-01 21:17:19.000000000 +0000 ++++ common-src/glib-util.c 2013-02-07 15:54:40.000000000 +0000 @@ -38,26 +38,15 @@ if (did_glib_init) return; did_glib_init = TRUE; @@ -46,7 +46,7 @@ } typedef enum { -@@ -107,29 +107,19 @@ +@@ -107,38 +107,19 @@ return to; } @@ -76,7 +76,16 @@ g_slist_free(list); } +- +-void g_queue_free_full(GQueue * queue) { +- while (!g_queue_is_empty(queue)) { +- gpointer data; +- data = g_queue_pop_head(queue); +- amfree(data); +- } +- g_queue_free(queue); +-} +#endif - void g_queue_free_full(GQueue * queue) { - while (!g_queue_is_empty(queue)) { + void g_ptr_array_free_full(GPtrArray * array) { + size_t i; |