mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 02:20:04 +01:00
gmodule: Add some missing consts
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
0c8740dc83
commit
73a78f7470
@ -74,10 +74,10 @@
|
|||||||
|
|
||||||
|
|
||||||
/* --- functions --- */
|
/* --- functions --- */
|
||||||
static gchar*
|
static const gchar *
|
||||||
fetch_dlerror (gboolean replace_null)
|
fetch_dlerror (gboolean replace_null)
|
||||||
{
|
{
|
||||||
gchar *msg = dlerror ();
|
const gchar *msg = dlerror ();
|
||||||
|
|
||||||
/* make sure we always return an error message != NULL, if
|
/* make sure we always return an error message != NULL, if
|
||||||
* expected to do so. */
|
* expected to do so. */
|
||||||
@ -147,7 +147,7 @@ _g_module_symbol (gpointer handle,
|
|||||||
const gchar *symbol_name)
|
const gchar *symbol_name)
|
||||||
{
|
{
|
||||||
gpointer p;
|
gpointer p;
|
||||||
gchar *msg;
|
const gchar *msg;
|
||||||
|
|
||||||
fetch_dlerror (FALSE);
|
fetch_dlerror (FALSE);
|
||||||
p = dlsym (handle, symbol_name);
|
p = dlsym (handle, symbol_name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user