summaryrefslogtreecommitdiff
path: root/gmodule
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-10-02 21:57:40 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-10-02 22:11:33 -0400
commit34ce4dd0324acd02ceb51d43fdaed5640041d8c1 (patch)
tree43c9186ebb1c0e3d3bef67e78ceb82a7cb2829a7 /gmodule
parent6f711518230cbb2e09c56a7853e191eb6269faef (diff)
Replace static privates by privates
GStaticPrivate is heading for deprecation soon, and GPrivate can replace these uses now.
Diffstat (limited to 'gmodule')
-rw-r--r--gmodule/gmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gmodule/gmodule.c b/gmodule/gmodule.c
index 4d7e81138..c1a6486be 100644
--- a/gmodule/gmodule.c
+++ b/gmodule/gmodule.c
@@ -91,7 +91,7 @@ static inline GModule* g_module_find_by_name (const gchar *name);
/* --- variables --- */
static GModule *modules = NULL;
static GModule *main_module = NULL;
-static GStaticPrivate module_error_private = G_STATIC_PRIVATE_INIT;
+static GPrivate module_error_private = G_PRIVATE_INIT (g_free);
static gboolean module_debug_initialized = FALSE;
static guint module_debug_flags = 0;
@@ -135,7 +135,7 @@ g_module_find_by_name (const gchar *name)
static inline void
g_module_set_error_unduped (gchar *error)
{
- g_static_private_set (&module_error_private, error, g_free);
+ g_private_replace (&module_error_private, error);
errno = 0;
}
@@ -600,7 +600,7 @@ g_module_make_resident (GModule *module)
const gchar *
g_module_error (void)
{
- return g_static_private_get (&module_error_private);
+ return g_private_get (&module_error_private);
}
gboolean