diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2012-05-26 21:40:52 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-05-27 22:34:08 +0300 |
commit | 6fe93014397aebd8d1a8e32856d13cc53417be48 (patch) | |
tree | f8f7073b42c34053e5239ee1c032b1350abe5629 /src/storage.c | |
parent | a6b75b038392bcf45816628e4eeb18da36e7b020 (diff) |
storage: Rename characteristic to characteristics
This patch renames the "characteristic" file to "characteristics" to be
more suitable with its content.
Diffstat (limited to 'src/storage.c')
-rw-r--r-- | src/storage.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/storage.c b/src/storage.c index cbbf8f6b..9a47d29c 100644 --- a/src/storage.c +++ b/src/storage.c @@ -1220,7 +1220,7 @@ int delete_device_service(const bdaddr_t *sba, const bdaddr_t *dba, sprintf(&key[17], "#%hhu", bdaddr_type); /* Deleting all characteristics of a given key */ - create_filename(filename, PATH_MAX, sba, "characteristic"); + create_filename(filename, PATH_MAX, sba, "characteristics"); delete_by_pattern(filename, key); /* Deleting all attributes values of a given key */ @@ -1255,7 +1255,7 @@ int write_device_characteristics(const bdaddr_t *sba, const bdaddr_t *dba, { char filename[PATH_MAX + 1], addr[18], key[25]; - create_filename(filename, PATH_MAX, sba, "characteristic"); + create_filename(filename, PATH_MAX, sba, "characteristics"); create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); @@ -1270,7 +1270,7 @@ char *read_device_characteristics(const bdaddr_t *sba, const bdaddr_t *dba, { char filename[PATH_MAX + 1], addr[18], key[25]; - create_filename(filename, PATH_MAX, sba, "characteristic"); + create_filename(filename, PATH_MAX, sba, "characteristics"); ba2str(dba, addr); snprintf(key, sizeof(key), "%17s#%hhu#%04X", addr, bdaddr_type, handle); |