Author: grothoff Date: 2008-02-22 00:52:41 -0700 (Fri, 22 Feb 2008) New Revision: 6412
Modified: GNUnet/src/applications/fs/tools/gnunet-auto-share.c GNUnet/src/applications/rpc/rpc.c GNUnet/todo Log: fixes Modified: GNUnet/src/applications/fs/tools/gnunet-auto-share.c =================================================================== --- GNUnet/src/applications/fs/tools/gnunet-auto-share.c 2008-02-22 06:52:27 UTC (rev 6411) +++ GNUnet/src/applications/fs/tools/gnunet-auto-share.c 2008-02-22 07:52:41 UTC (rev 6412) @@ -198,9 +198,13 @@ rec->size = buf.st_size; rec->last_seen = time (NULL); GNUNET_hash_file (NULL, fn, &rec->hc); + rec->next = records; + records = rec; if (GNUNET_NO == GNUNET_FS_test_indexed (sock, &rec->hc)) - *run = 1; - return GNUNET_SYSERR; + { + *run = 1; + return GNUNET_SYSERR; + } } else { @@ -376,6 +380,7 @@ GNUNET_GC_parse_configuration (meta_cfg, metafn); if (GNUNET_NO == debug_flag) GNUNET_terminal_detach_complete (ectx, filedes, GNUNET_YES); + GNUNET_free(metafn); /* fundamental init */ ctx = GNUNET_FSUI_start (ectx, cfg, "gnunet-auto-share", GNUNET_NO, 32, &printstatus, &verbose); Modified: GNUnet/src/applications/rpc/rpc.c =================================================================== --- GNUnet/src/applications/rpc/rpc.c 2008-02-22 06:52:27 UTC (rev 6411) +++ GNUnet/src/applications/rpc/rpc.c 2008-02-22 07:52:41 UTC (rev 6412) @@ -385,6 +385,8 @@ prev->next = pos->next; GNUNET_free (pos->name); GNUNET_free (pos); + GNUNET_mutex_unlock (lock); + return GNUNET_OK; } prev = pos; pos = pos->next; @@ -505,7 +507,7 @@ ret->functionNameLength = htonl (errorCode); else ret->functionNameLength = htonl (slen); - ret->argumentCount = htonl (GNUNET_RPC_parameters_count (values)); + ret->argumentCount = htonl ((value == NULL) ? 0 : GNUNET_RPC_parameters_count (values)); if (name != NULL) memcpy (&ret[1], name, slen); GNUNET_RPC_parameters_serialize (values, &((char *) &ret[1])[slen]); Modified: GNUnet/todo =================================================================== --- GNUnet/todo 2008-02-22 06:52:27 UTC (rev 6411) +++ GNUnet/todo 2008-02-22 07:52:41 UTC (rev 6412) @@ -5,8 +5,8 @@ PRE == to be done before a pre-release 0.8.0 [6'08] (aka "advanced features"): -- HTTP transport uses FAR too much CPU (80-90%!?) - full support for FSUI pause/resume of search +- HTTP transport uses FAR too much CPU (80-90%!?) => possibly fixed! - power insert (#854) - clean up VPN code - tune GAP query planning code [RC] _______________________________________________ GNUnet-SVN mailing list GNUnet-SVN@gnu.org http://lists.gnu.org/mailman/listinfo/gnunet-svn