aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Alcantara <paulo.alcantara@openbossa.org>2012-05-26 16:54:26 -0300
committerPaulo Alcantara <paulo.alcantara@openbossa.org>2012-05-26 17:10:40 -0300
commit37120d440763ef6c4f3a94b7c3a23a5728efca43 (patch)
tree7983ce12733b4d880f4d4509a68c53fdedb57b5f
parentc5babeec6ffd4053efe8320bd78dcb2dd00077eb (diff)
downloadbluez-le-only-storage.tar.gz
bluez-le-only-storage.tar.xz
bluez-le-only-storage.zip
storage: Rename appearance file to appearancesle-only-storage
This patch renames the "appearance" file to "appearances" to be more suitable with its content.
-rw-r--r--src/storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage.c b/src/storage.c
index 722abdeb..7d65fe13 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -286,7 +286,7 @@ int read_remote_appearance(bdaddr_t *local, bdaddr_t *peer, uint8_t bdaddr_type,
{
char filename[PATH_MAX + 1], key[20], *str;
- create_filename(filename, PATH_MAX, local, "appearance");
+ create_filename(filename, PATH_MAX, local, "appearances");
ba2str(peer, key);
sprintf(&key[17], "#%hhu", bdaddr_type);
@@ -310,7 +310,7 @@ int write_remote_appearance(bdaddr_t *local, bdaddr_t *peer,
{
char filename[PATH_MAX + 1], key[20], str[7];
- create_filename(filename, PATH_MAX, local, "appearance");
+ create_filename(filename, PATH_MAX, local, "appearances");
create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);