1
0
Fork 0

Do not pass flags to g_module_open(NULL)

The flags are ignored when opening the main module, so we
should pass 0 to avoid confusion when reading the source.
This commit is contained in:
Emmanuele Bassi 2009-11-06 14:04:36 +00:00
parent 4262f79f34
commit 30bc36082e
4 changed files with 7 additions and 7 deletions

View file

@ -244,7 +244,7 @@ resolve_alpha_func (const gchar *name)
CLUTTER_NOTE (SCRIPT, "Looking up '%s' alpha function", name);
if (G_UNLIKELY (module == NULL))
module = g_module_open (NULL, G_MODULE_BIND_LAZY);
module = g_module_open (NULL, 0);
if (g_module_symbol (module, name, (gpointer) &func))
{

View file

@ -76,7 +76,7 @@ clutter_script_get_type_from_symbol (const gchar *symbol)
GType gtype = G_TYPE_INVALID;
if (!module)
module = g_module_open (NULL, G_MODULE_BIND_LAZY);
module = g_module_open (NULL, 0);
if (g_module_symbol (module, symbol, (gpointer)&func))
gtype = func ();
@ -95,7 +95,7 @@ clutter_script_get_type_from_class (const gchar *name)
gint i;
if (G_UNLIKELY (!module))
module = g_module_open (NULL, G_MODULE_BIND_LAZY);
module = g_module_open (NULL, 0);
for (i = 0; name[i] != '\0'; i++)
{
@ -803,7 +803,7 @@ resolve_alpha_func (const gchar *name)
CLUTTER_NOTE (SCRIPT, "Looking up '%s' alpha function", name);
if (G_UNLIKELY (!module))
module = g_module_open (NULL, G_MODULE_BIND_LAZY);
module = g_module_open (NULL, 0);
if (g_module_symbol (module, name, (gpointer) &func))
{

View file

@ -906,7 +906,7 @@ clutter_script_connect_signals (ClutterScript *script,
}
cd = g_new (ConnectData, 1);
cd->module = g_module_open (NULL, G_MODULE_BIND_LAZY);
cd->module = g_module_open (NULL, 0);
cd->data = user_data;
clutter_script_connect_signals_full (script,

View file

@ -97,8 +97,8 @@ cogl_get_proc_address (const gchar* name)
/* this should find the right function if the program is linked against a
* library providing it */
if (module == NULL)
module = g_module_open (NULL, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);
if (G_UNLIKELY (module == NULL))
module = g_module_open (NULL, 0);
if (module)
{