summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-06-22 19:55:06 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-06-22 19:55:06 +0000
commit79a65bbbe4d711bb7eb78ff9744fe33ef46082aa (patch)
tree2dc1d051d20fc4a04cee57b3cf55e331589ed00b /input
parent1ad4df62d7b0ca988bc5ae62444420fc0273d53a (diff)
input: remove the device entry from the hidd file when RemoveDevice is called
Diffstat (limited to 'input')
-rw-r--r--input/storage.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/input/storage.c b/input/storage.c
index 7da536b3..0ba49027 100644
--- a/input/storage.c
+++ b/input/storage.c
@@ -166,10 +166,12 @@ int del_stored_device_info(bdaddr_t *src, bdaddr_t *dst)
char filename[PATH_MAX + 1];
char addr[18];
- create_filename(filename, PATH_MAX, src, "input");
-
ba2str(dst, addr);
+ create_filename(filename, PATH_MAX, src, "hidd");
+ textfile_del(filename, addr);
+
+ create_filename(filename, PATH_MAX, src, "input");
return textfile_del(filename, addr);
}