summaryrefslogtreecommitdiff
path: root/gmodule
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2011-03-12 21:50:45 -0500
committerRyan Lortie <desrt@desrt.ca>2011-06-09 11:15:40 -0400
commit8073759f8cad2033169730c1b95af5b763e3c126 (patch)
tree37400042d458e879ed0071ce4c01e74a330e3578 /gmodule
parent8f21e8145cf084ecd66c30cd868f56f7dcd87334 (diff)
Remove all uses of G_CONST_RETURN
Just use 'const'. https://bugzilla.gnome.org/show_bug.cgi?id=644611
Diffstat (limited to 'gmodule')
-rw-r--r--gmodule/gmodule.c6
-rw-r--r--gmodule/gmodule.h4
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