diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2021-05-27 13:35:18 +0100 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2021-05-27 13:46:28 +0100 |
commit | 73a78f7470c2057fcd9bb1a1418444459ca145e4 (patch) | |
tree | 7f564f3c15587ccf4638732e89129674724812eb /gmodule | |
parent | 0c8740dc838263008da7be68192065ae7e935bed (diff) | |
download | glib-73a78f7470c2057fcd9bb1a1418444459ca145e4.tar.gz |
gmodule: Add some missing consts
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Diffstat (limited to 'gmodule')
-rw-r--r-- | gmodule/gmodule-dl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gmodule/gmodule-dl.c b/gmodule/gmodule-dl.c index bb2df6836..7fb30bd84 100644 --- a/gmodule/gmodule-dl.c +++ b/gmodule/gmodule-dl.c @@ -74,10 +74,10 @@ /* --- functions --- */ -static gchar* +static const gchar * fetch_dlerror (gboolean replace_null) { - gchar *msg = dlerror (); + const gchar *msg = dlerror (); /* make sure we always return an error message != NULL, if * expected to do so. */ @@ -147,7 +147,7 @@ _g_module_symbol (gpointer handle, const gchar *symbol_name) { gpointer p; - gchar *msg; + const gchar *msg; fetch_dlerror (FALSE); p = dlsym (handle, symbol_name); |