From ff9745b2228bfb780f5d5d553a8de61a7271062d Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 26 Jul 2006 13:03:54 +0000 Subject: Make use of create_name() --- hcid/storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hcid') 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) -- cgit