summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-07-26 13:57:50 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-07-26 13:57:50 +0000
commitf901d243dff9fa64668f03a3ed0eb752b317fef0 (patch)
tree4b8d136b7f5f833e7680b27828137ad746871b8d /hcid
parent17152022a5844275a6f3e3e71ef5b32dc2c0ec04 (diff)
Make use of create_name()
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus-adapter.c2
-rw-r--r--hcid/dbus-sdp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c
index 2d9b32b4..01cd3886 100644
--- a/hcid/dbus-adapter.c
+++ b/hcid/dbus-adapter.c
@@ -1997,7 +1997,7 @@ static DBusHandlerResult handle_dev_list_bondings_req(DBusConnection *conn, DBus
if (!dbus_message_has_signature(msg, DBUS_TYPE_INVALID_AS_STRING))
return error_invalid_arguments(conn, msg);
- snprintf(filename, PATH_MAX, "%s/%s/linkkeys", STORAGEDIR, dbus_data->address);
+ create_name(filename, PATH_MAX, STORAGEDIR, dbus_data->address, "linkkeys");
reply = dbus_message_new_method_return(msg);
diff --git a/hcid/dbus-sdp.c b/hcid/dbus-sdp.c
index 72ae36c2..2cfd687c 100644
--- a/hcid/dbus-sdp.c
+++ b/hcid/dbus-sdp.c
@@ -852,7 +852,7 @@ static DBusHandlerResult get_identifiers(DBusConnection *conn,
return error_service_search_in_progress(conn, msg);
/* check if it is a unknown address */
- snprintf(filename, PATH_MAX, "%s/%s/lastseen", STORAGEDIR, dbus_data->address);
+ create_name(filename, PATH_MAX, STORAGEDIR, dbus_data->address, "lastseen");
str = textfile_get(filename, dst);
if (!str)