From 806640b12ffdba3dd6ad9a3b98196837d01c2b7f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 25 Apr 2006 13:46:05 +0000 Subject: Small coding style fixes --- hcid/storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hcid/storage.c') 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); -- cgit