From 9e344aba0489ceddb0fc9a12e1f012fd0f6250f9 Mon Sep 17 00:00:00 2001 From: Vinicius Gomes Date: Thu, 20 Mar 2008 14:39:35 +0000 Subject: adapter: fixing the parameter list of the adapter_get_device function --- hcid/adapter.c | 4 ++-- hcid/adapter.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hcid/adapter.c b/hcid/adapter.c index 4b1bc0eb..eda5fc22 100644 --- a/hcid/adapter.c +++ b/hcid/adapter.c @@ -2130,7 +2130,7 @@ static void create_device_req_free(struct create_device_req *create) create = NULL; } -struct device *adapter_get_device(struct adapter *adapter, const char *src) +struct device *adapter_get_device(struct adapter *adapter, const char *dest) { struct device *device; GSList *l; @@ -2139,7 +2139,7 @@ struct device *adapter_get_device(struct adapter *adapter, const char *src) return NULL; l = g_slist_find_custom(adapter->devices, - src, (GCompareFunc) device_address_cmp); + dest, (GCompareFunc) device_address_cmp); if (!l) return NULL; diff --git a/hcid/adapter.h b/hcid/adapter.h index 0ab02c77..82e4f68c 100644 --- a/hcid/adapter.h +++ b/hcid/adapter.h @@ -113,7 +113,7 @@ struct adapter { dbus_bool_t adapter_init(DBusConnection *conn, const char *path); -struct device *adapter_get_device(struct adapter *adapter, const char *src); +struct device *adapter_get_device(struct adapter *adapter, const char *dest); const char *major_class_str(uint32_t class); -- cgit