diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-09-02 02:28:33 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-09-02 02:28:33 +0200 |
commit | 0c05dd3dc5a18d64734a9f091d5285612e41107b (patch) | |
tree | 57de979b0fdef6c07329d0aae06235730a2fb4cb /network/common.c | |
parent | 4f946e36897fc67a28a56fb3102994da6857a038 (diff) | |
parent | 3f498e694e39756890db475f1f1edb528b378ee2 (diff) |
Merge branch 'for-upstream' of git://gitorious.org/bluez/cktakahasis-clone
Diffstat (limited to 'network/common.c')
-rw-r--r-- | network/common.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/network/common.c b/network/common.c index 151e4810..980486fc 100644 --- a/network/common.c +++ b/network/common.c @@ -32,7 +32,6 @@ #include <sys/param.h> #include <sys/ioctl.h> #include <sys/socket.h> -#include <sys/stat.h> #include <sys/wait.h> #include <net/if.h> @@ -44,7 +43,6 @@ #include "logging.h" #include "common.h" -#include "textfile.h" static int ctl; static GSList *pids; @@ -372,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; -} |