diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-08-16 13:10:42 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-08-16 13:10:42 +0000 |
commit | 57c2796d829c4b0078db7b59025e3cecdf85b2f0 (patch) | |
tree | 3bd6b18a85a6150f72b826b2f61a95533f48e7b7 /serial | |
parent | 5d2db7ef22c2fd0971f24f759b039f8a891447fa (diff) |
serial: proxy storage parsing - fixed Bluetooth source address
Diffstat (limited to 'serial')
-rw-r--r-- | serial/manager.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/serial/manager.c b/serial/manager.c index 4dd98469..1c913351 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -1818,9 +1818,10 @@ static void parse_port(char *key, char *value, void *data) static void parse_proxy(char *key, char *value, void *data) { char path[MAX_PATH_LENGTH], uuid_str[MAX_LEN_UUID_STR], tmp[3], *pvalue; + char *src_addr = data; struct termios ti; int ch, opts, pos = 0; - bdaddr_t *src = data; + bdaddr_t src; uuid_t uuid; uint8_t *pti; @@ -1864,7 +1865,8 @@ static void parse_proxy(char *key, char *value, void *data) snprintf(path, MAX_PATH_LENGTH - 1, "/org/bluez/serial/proxy%s", key + pos); - proxy_register(connection, src, path, &uuid, key, &ti); + str2ba(src_addr, &src); + proxy_register(connection, &src, path, &uuid, key, &ti); proxies_paths = g_slist_append(proxies_paths, g_strdup(path)); } |