summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-29 10:39:41 -0300
committerLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-29 10:39:41 -0300
commit5785e005b77ff5f0620dad237aefed0ec087a8f1 (patch)
tree4007a5dcffd3227217c5a2c4a623532e085a2b96
parent12d81a98fe65d109c0b1caa242e96b005bcc8209 (diff)
Fix warnings.
-rw-r--r--hcid/manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hcid/manager.c b/hcid/manager.c
index 16f54a81..03b19848 100644
--- a/hcid/manager.c
+++ b/hcid/manager.c
@@ -347,7 +347,7 @@ void manager_cleanup(DBusConnection *conn, const char *path)
static gint adapter_id_cmp(gconstpointer a, gconstpointer b)
{
- const struct adapter *adapter = a;
+ struct adapter *adapter = (struct adapter *) a;
uint16_t id = GPOINTER_TO_UINT(b);
uint16_t dev_id = adapter_get_dev_id(adapter);
@@ -356,7 +356,7 @@ static gint adapter_id_cmp(gconstpointer a, gconstpointer b)
static gint adapter_path_cmp(gconstpointer a, gconstpointer b)
{
- const struct adapter *adapter = a;
+ struct adapter *adapter = (struct adapter *) a;
const char *path = b;
const gchar *adapter_path = adapter_get_path(adapter);
@@ -365,7 +365,7 @@ static gint adapter_path_cmp(gconstpointer a, gconstpointer b)
static gint adapter_address_cmp(gconstpointer a, gconstpointer b)
{
- const struct adapter *adapter = a;
+ struct adapter *adapter = (struct adapter *) a;
const char *address = b;
const gchar *source = adapter_get_address(adapter);