gmodule: Add some missing consts

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2021-05-27 13:35:18 +01:00
parent 0c8740dc83
commit 73a78f7470

View File

@ -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);