diff options
author | Ryan Lortie <desrt@desrt.ca> | 2011-03-12 21:50:45 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2011-03-15 01:32:22 -0400 |
commit | 36741245cca56e979fe85e3de676fb3912058f2c (patch) | |
tree | 982e292d7cac5a33cdfe7e9efa6c1f36736b4c16 /gmodule | |
parent | 61b0e1c8d49b6b42d3b6f27f0663ead75967f81a (diff) |
Remove all uses of G_CONST_RETURN
Just use 'const'.
Diffstat (limited to 'gmodule')
-rw-r--r-- | gmodule/gmodule.c | 6 | ||||
-rw-r--r-- | gmodule/gmodule.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gmodule/gmodule.c b/gmodule/gmodule.c index 2d7f410b6..3e076ec86 100644 --- a/gmodule/gmodule.c +++ b/gmodule/gmodule.c @@ -598,7 +598,7 @@ g_module_make_resident (GModule *module) module->is_resident = TRUE; } -G_CONST_RETURN gchar* +const gchar * g_module_error (void) { return g_static_private_get (&module_error_private); @@ -648,7 +648,7 @@ g_module_symbol (GModule *module, return !module_error; } -G_CONST_RETURN gchar* +const gchar * g_module_name (GModule *module) { g_return_val_if_fail (module != NULL, NULL); @@ -663,7 +663,7 @@ g_module_name (GModule *module) #undef g_module_name -G_CONST_RETURN gchar* +const gchar * g_module_name (GModule *module) { g_return_val_if_fail (module != NULL, NULL); diff --git a/gmodule/gmodule.h b/gmodule/gmodule.h index ae7f8e54a..5f18f9db1 100644 --- a/gmodule/gmodule.h +++ b/gmodule/gmodule.h @@ -71,7 +71,7 @@ gboolean g_module_close (GModule *module); void g_module_make_resident (GModule *module); /* query the last module error as a string */ -G_CONST_RETURN gchar* g_module_error (void); +const gchar * g_module_error (void); /* retrieve a symbol pointer from `module', returns TRUE on success */ gboolean g_module_symbol (GModule *module, @@ -79,7 +79,7 @@ gboolean g_module_symbol (GModule *module, gpointer *symbol); /* retrieve the file name from an existing module */ -G_CONST_RETURN gchar* g_module_name (GModule *module); +const gchar * g_module_name (GModule *module); /* Build the actual file name containing a module. `directory' is the * directory where the module file is supposed to be, or NULL or empty |