mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 05:34:23 +08:00
Network: Removed unused function
This commit is contained in:
parent
6a9485b234
commit
3f498e694e
@ -43,7 +43,6 @@
|
||||
|
||||
#include "logging.h"
|
||||
#include "common.h"
|
||||
#include "textfile.h"
|
||||
|
||||
static int ctl;
|
||||
static GSList *pids;
|
||||
@ -371,21 +370,3 @@ done:
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int read_remote_name(bdaddr_t *src, bdaddr_t *dst, char *buf, size_t size)
|
||||
{
|
||||
char filename[PATH_MAX + 1], addr[18], *str;
|
||||
|
||||
ba2str(src, addr);
|
||||
create_name(filename, PATH_MAX, STORAGEDIR, addr, "names");
|
||||
|
||||
ba2str(dst, addr);
|
||||
str = textfile_get(filename, addr);
|
||||
if (!str)
|
||||
return -ENOENT;
|
||||
|
||||
snprintf(buf, size, "%s", str);
|
||||
free(str);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -39,5 +39,3 @@ int bnep_kill_all_connections(void);
|
||||
int bnep_connadd(int sk, uint16_t role, char *dev);
|
||||
int bnep_if_up(const char *devname, uint16_t id);
|
||||
int bnep_if_down(const char *devname);
|
||||
|
||||
int read_remote_name(bdaddr_t *src, bdaddr_t *dst, char *buf, size_t size);
|
||||
|
Loading…
Reference in New Issue
Block a user