summaryrefslogtreecommitdiffstats
path: root/hcid/storage.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-07-26 13:03:54 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-07-26 13:03:54 +0000
commitff9745b2228bfb780f5d5d553a8de61a7271062d (patch)
treed189fb6cf71d6100331821f35249ba12bfb0f924 /hcid/storage.c
parent86d19dcfa04879c863a1248851cd7854b68242cb (diff)
Make use of create_name()
Diffstat (limited to 'hcid/storage.c')
-rw-r--r--hcid/storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/storage.c b/hcid/storage.c
index ee927a78..ade97641 100644
--- a/hcid/storage.c
+++ b/hcid/storage.c
@@ -43,13 +43,13 @@
#include "textfile.h"
#include "hcid.h"
-static int create_filename(char *buf, size_t size, bdaddr_t *bdaddr, char *name)
+static inline int create_filename(char *buf, size_t size, bdaddr_t *bdaddr, const char *name)
{
char addr[18];
ba2str(bdaddr, addr);
- return snprintf(buf, size, "%s/%s/%s", STORAGEDIR, addr, name);
+ return create_name(buf, size, STORAGEDIR, addr, name);
}
int write_discoverable_timeout(bdaddr_t *bdaddr, int timeout)