diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-08-30 09:54:27 -0300 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-09-01 17:23:27 -0300 |
commit | 676f5e7dea3c6c160ffdf08d42bf83e72a5a6c3f (patch) | |
tree | 1eafa357750c5c25070d76b66b09cad19a50fd2c /src/storage.c | |
parent | 75c562d773e5fe37f4257631318d7f918edc5b53 (diff) |
Adapter initialization cleanup
Diffstat (limited to 'src/storage.c')
-rw-r--r-- | src/storage.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/storage.c b/src/storage.c index f85dbb53..c2450ba2 100644 --- a/src/storage.c +++ b/src/storage.c @@ -97,11 +97,11 @@ int write_discoverable_timeout(bdaddr_t *bdaddr, int timeout) return textfile_put(filename, "discovto", str); } -int read_discoverable_timeout(bdaddr_t *bdaddr, int *timeout) +int read_discoverable_timeout(const char *src, int *timeout) { char filename[PATH_MAX + 1], *str; - create_filename(filename, PATH_MAX, bdaddr, "config"); + create_name(filename, PATH_MAX, STORAGEDIR, src, "config"); str = textfile_get(filename, "discovto"); if (!str) @@ -131,11 +131,11 @@ int write_device_mode(bdaddr_t *bdaddr, const char *mode) return textfile_put(filename, "mode", mode); } -int read_device_mode(bdaddr_t *bdaddr, char *mode, int length) +int read_device_mode(const char *src, char *mode, int length) { char filename[PATH_MAX + 1], *str; - create_filename(filename, PATH_MAX, bdaddr, "config"); + create_name(filename, PATH_MAX, STORAGEDIR, src, "config"); str = textfile_get(filename, "mode"); if (!str) |