Diff between 3067e58bc48a38778be97175b49ab711b06ed723 and 4b8b0676897820c0fa706afc473e25368791324e

Changed Files

File Additions Deletions Status
src/storage.c +1 -1 modified
src/storage.h +1 -1 modified

Full Patch

diff --git a/src/storage.c b/src/storage.c
index 3db1754..96db6f5 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -379,7 +379,7 @@ int read_remote_class(bdaddr_t *local, bdaddr_t *peer, uint32_t *class)
 }
 
 int write_device_name(bdaddr_t *local, bdaddr_t *peer, uint8_t peer_type,
-								char *name)
+							const char *name)
 {
 	char filename[PATH_MAX + 1], key[20], str[HCI_MAX_NAME_LENGTH + 1];
 	int i;
diff --git a/src/storage.h b/src/storage.h
index 6e2766d..6a8df83 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -45,7 +45,7 @@ int read_remote_appearance(bdaddr_t *local, bdaddr_t *peer, uint8_t bdaddr_type,
 int write_remote_class(bdaddr_t *local, bdaddr_t *peer, uint32_t class);
 int read_remote_class(bdaddr_t *local, bdaddr_t *peer, uint32_t *class);
 int write_device_name(bdaddr_t *local, bdaddr_t *peer, uint8_t peer_type,
-								char *name);
+							const char *name);
 int read_device_name(const char *src, const char *dst, uint8_t dst_type,
 								char *name);
 int write_remote_eir(bdaddr_t *local, bdaddr_t *peer, uint8_t peer_type,