summaryrefslogtreecommitdiffstats
path: root/network
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-04-13 21:38:36 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-04-13 21:38:36 +0000
commit373808d7a4932c4b5a2616e09f0d8e7d45ccabbe (patch)
tree9e15b86781ed3a9f88c6f13bb04d9cfb49560826 /network
parentecde90ac204a58ea86026a9f9b556a52ac15187f (diff)
network: cleanup and added some FIXME tags
Diffstat (limited to 'network')
-rw-r--r--network/manager.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/network/manager.c b/network/manager.c
index b2ca7fe7..ed793592 100644
--- a/network/manager.c
+++ b/network/manager.c
@@ -887,30 +887,28 @@ int network_del_stored_info(bdaddr_t *src, uint16_t uuid)
{
char filename[PATH_MAX + 1];
const char *str;
- int err;
create_filename(filename, PATH_MAX, src, "network");
- str = bnep_uuid(uuid);
+ /* FIXME: Wrong format */
- err = textfile_del(filename, str);
+ str = bnep_uuid(uuid);
- return err;
+ return textfile_del(filename, str);
}
int network_store_info(bdaddr_t *src, uint16_t uuid, gboolean enable)
{
char filename[PATH_MAX + 1];
const char *str;
- int err;
create_filename(filename, PATH_MAX, src, "network");
+ /* FIXME: Wrong format */
+
str = bnep_uuid(uuid);
create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
- err = textfile_put(filename, str, enable ? "1" : "0");
-
- return err;
+ return textfile_put(filename, str, enable ? "1" : "0");
}