summaryrefslogtreecommitdiffstats
path: root/tools/hcitool.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-04-21 20:18:09 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-04-21 20:18:09 +0000
commitf5a214f76f2d93702b5bc3b0b168389d8f8b34f2 (patch)
tree71dcdb11c6b15cc2849fa46abe15d6492d080a63 /tools/hcitool.c
parentacea732b00a0f48d1e4414b303f6b2c49e71cbbe (diff)
Set the storage directory through ${localstatedir}
Diffstat (limited to 'tools/hcitool.c')
-rw-r--r--tools/hcitool.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/hcitool.c b/tools/hcitool.c
index 453ef2e3..fb189760 100644
--- a/tools/hcitool.c
+++ b/tools/hcitool.c
@@ -279,8 +279,6 @@ static char *major_classes[] = {
"Audio/Video", "Peripheral", "Imaging", "Uncategorized"
};
-#define DEVPATH "/var/lib/bluetooth/"
-
static int read_device_name(const bdaddr_t *local, const bdaddr_t *peer, char *name)
{
char filename[PATH_MAX + 1], addr[18], str[249], *buf, *ptr;
@@ -289,7 +287,7 @@ static int read_device_name(const bdaddr_t *local, const bdaddr_t *peer, char *n
int fd, pos, err = -ENOENT;
ba2str(local, addr);
- snprintf(filename, PATH_MAX, "%s/%s/names", DEVPATH, addr);
+ snprintf(filename, PATH_MAX, "%s/%s/names", STORAGEDIR, addr);
fd = open(filename, O_RDONLY);
if (fd < 0)