summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-10-02 12:50:21 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-10-02 12:50:21 +0000
commit0db61b63bb7299684ecb7d5a56a6fd35b3e8f4de (patch)
tree7cd3ccaa650906649978b7714afc82895885f2c2
parent07021baf7a9e81f75776c99d65b774204b11422e (diff)
Use "onmode" instead of "on" as the key for the previous on-mode
-rw-r--r--hcid/storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/storage.c b/hcid/storage.c
index f2254cc3..bec8fec1 100644
--- a/hcid/storage.c
+++ b/hcid/storage.c
@@ -95,7 +95,7 @@ int write_device_mode(bdaddr_t *bdaddr, const char *mode)
create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if (strcmp(mode, "off") != 0)
- textfile_put(filename, "on", mode);
+ textfile_put(filename, "onmode", mode);
return textfile_put(filename, "mode", mode);
}
@@ -124,7 +124,7 @@ int read_on_mode(bdaddr_t *bdaddr, char *mode, int length)
create_filename(filename, PATH_MAX, bdaddr, "config");
- str = textfile_get(filename, "on");
+ str = textfile_get(filename, "onmode");
if (!str)
return -ENOENT;