summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-02-12 17:57:10 -0600
committerDenis Kenzior <denkenz@gmail.com>2010-02-12 17:57:20 -0600
commite3016c3bc58a19936d623e554379ae2b259602df (patch)
tree85843e77863a0f4658cd0b80d992c06be5c51b64
parent6ec67d79ed2538a74e56d520982f4e64a1394061 (diff)
downloadofono-e3016c3bc58a19936d623e554379ae2b259602df.tar.bz2
Fix: Store the modem in the uuid hash
The modem is more useful to store than the path, particularly once we track Aliases
-rw-r--r--plugins/hfp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/hfp.c b/plugins/hfp.c
index b60773e6..5c2be838 100644
--- a/plugins/hfp.c
+++ b/plugins/hfp.c
@@ -579,7 +579,7 @@ static int hfp_create_modem(const char *device)
ofono_modem_register(modem);
path = ofono_modem_get_path(modem);
- g_hash_table_insert(uuid_hash, g_strdup(device), g_strdup(path));
+ g_hash_table_insert(uuid_hash, g_strdup(device), modem);
return 0;
@@ -1053,7 +1053,7 @@ static int hfp_init()
}
uuid_hash = g_hash_table_new_full(g_str_hash, g_str_equal,
- g_free, g_free);
+ g_free, NULL);
adapter_address_hash = g_hash_table_new_full(g_str_hash, g_str_equal,
g_free, g_free);