summaryrefslogtreecommitdiffstats
path: root/hcid/storage.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-04-25 13:46:05 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-04-25 13:46:05 +0000
commit806640b12ffdba3dd6ad9a3b98196837d01c2b7f (patch)
tree115b8b5e57a02334747b9a6ea09b26171081e266 /hcid/storage.c
parentf85f711a31fb3489580dc66b23c566cec12b1467 (diff)
Small coding style fixes
Diffstat (limited to 'hcid/storage.c')
-rw-r--r--hcid/storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/storage.c b/hcid/storage.c
index 95ca8bd3..473c69de 100644
--- a/hcid/storage.c
+++ b/hcid/storage.c
@@ -48,7 +48,7 @@ int write_discoverable_timeout(const char *address, int timeout)
char filename[PATH_MAX + 1], str[32];
snprintf(str, sizeof(str), "%d", timeout);
-
+
snprintf(filename, PATH_MAX, "%s/%s/config", STORAGEDIR, address);
create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
@@ -100,7 +100,7 @@ int read_device_mode(bdaddr_t *bdaddr, char *mode, int length)
return -ENOENT;
strncpy(mode, str, length);
- mode[length-1] = '\0';
+ mode[length - 1] = '\0';
free(str);