From e78a90944ca19bce2b2271e076a6dbbd332fc842 Mon Sep 17 00:00:00 2001 From: Vinicius Gomes Date: Thu, 17 Apr 2008 17:46:49 +0000 Subject: eglib: fixing the plugin loading when using the eglib. --- hcid/plugin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hcid/plugin.c') diff --git a/hcid/plugin.c b/hcid/plugin.c index ca43ae72..7d275786 100644 --- a/hcid/plugin.c +++ b/hcid/plugin.c @@ -106,7 +106,7 @@ gboolean plugin_init(void) continue; } - module = g_module_open(filename, 0); + module = g_module_open(filename, G_MODULE_BIND_LOCAL); if (module == NULL) { error("Can't load plugin: %s", g_module_error()); g_free(filename); @@ -179,7 +179,7 @@ static struct adapter *ba2adapter(bdaddr_t *src) if (dbus_connection_get_object_user_data(conn, path, (void *) &adapter) == FALSE) return NULL; - + return adapter; } @@ -217,7 +217,7 @@ int plugin_req_auth(bdaddr_t *src, bdaddr_t *dst, if (!device) return -EPERM; - /* + /* * FIXME: Trusted device? Currently, service are based on a friendly * name, it is necessary convert UUID128 to friendly name or store the * UUID128 in the trusted file. -- cgit