From d4982955787817ad17aec6de9308c8f1d7ed0b92 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Wed, 27 Aug 2008 18:46:48 -0300 Subject: Storage cleanup: avoid Bluetooth address to string conversions --- src/storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/storage.c') diff --git a/src/storage.c b/src/storage.c index 3cdc9113..f85dbb53 100644 --- a/src/storage.c +++ b/src/storage.c @@ -608,7 +608,7 @@ static char *service_list_to_string(GSList *services) return g_strdup(str); } -int write_trust(bdaddr_t *local, const char *addr, const char *service, +int write_trust(const char *src, const char *addr, const char *service, gboolean trust) { char filename[PATH_MAX + 1], *str; @@ -616,7 +616,7 @@ int write_trust(bdaddr_t *local, const char *addr, const char *service, gboolean trusted; int ret; - create_filename(filename, PATH_MAX, local, "trusts"); + create_name(filename, PATH_MAX, STORAGEDIR, src, "trusts"); create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); -- cgit