aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUGS19
-rw-r--r--src/datacache/datacache.c5
-rw-r--r--src/datastore/test_datastore_api.c1
-rw-r--r--src/datastore/test_datastore_api_management.c1
-rw-r--r--src/fs/test_fs_download.c1
-rw-r--r--src/fs/test_fs_list_indexed.c1
-rw-r--r--src/fs/test_fs_namespace.c1
-rw-r--r--src/fs/test_fs_publish.c1
-rw-r--r--src/fs/test_fs_start_stop.c1
-rw-r--r--src/fs/test_fs_unindex.c1
-rw-r--r--src/hostlist/test_gnunet_daemon_hostlist.c2
-rw-r--r--src/util/container_heap.c16
12 files changed, 21 insertions, 29 deletions
diff --git a/BUGS b/BUGS
index d209717f5..e764e3cd9 100644
--- a/BUGS
+++ b/BUGS
@@ -82,6 +82,22 @@ sane end-user should care about this codebase yet anyway.
82 ==28393== by 0x524473E: GNUNET_NETWORK_socket_create_from_accept (network.c:323) 82 ==28393== by 0x524473E: GNUNET_NETWORK_socket_create_from_accept (network.c:323)
83 (rest of trace identical) 83 (rest of trace identical)
84 84
85 - [./transport/gnunet-service-transport.c:173]: (style) struct or union member 'TransportPlugin::rebuild' is never used
86 - [./transport/plugin_transport_tcp.c:391]: (style) struct or union member 'Plugin::address_update_task' is never used
87
88* FS:
89 - [./fs/gnunet-service-fs.c:208]: (style) struct or union member 'LocalGetContext::results_bf_size' is never used
90 - [./fs/gnunet-service-fs.c:501]: (style) struct or union member 'PendingRequest::used_pids_size' is never used
91 - [./fs/gnunet-service-fs.c:654]: (style) struct or union member 'ConnectedPeer::last_client_replies' is never used
92 - [./fs/gnunet-service-fs.c:669]: (style) struct or union member 'ConnectedPeer::avg_delay' is never used
93 - [./fs/gnunet-service-fs.c:675]: (style) struct or union member 'ConnectedPeer::avg_priority' is never used
94 - [./fs/gnunet-service-fs.c:688]: (style) struct or union member 'ConnectedPeer::pending_requests' is never used
95 - [./fs/gnunet-service-fs.c:694]: (style) struct or union member 'ConnectedPeer::last_p2p_replies_woff' is never used
96 - [./fs/gnunet-service-fs.c:700]: (style) struct or union member 'ConnectedPeer::last_client_replies_woff' is never used
97
98* TOPOLOGY:
99 - [./topology/gnunet-daemon-topology.c:94]: (style) struct or union member 'PeerList::last_hello_sent' is never used
100
85* DATASTORE: 101* DATASTORE:
86 - mysql backend 102 - mysql backend
87 - postgres backend 103 - postgres backend
@@ -100,6 +116,9 @@ sane end-user should care about this codebase yet anyway.
100 to signal on PONG and have topology hook directly into transport to 116 to signal on PONG and have topology hook directly into transport to
101 kill plaintext connections before they have a chance to become encrypted 117 kill plaintext connections before they have a chance to become encrypted
102 (may require minor hack in transport API) 118 (may require minor hack in transport API)
119 - [./core/gnunet-service-core.c:469]: (style) struct or union member 'Neighbour::message_queue_size' is never used
120 - [./core/test_core_api_start_only.c:50]: (style) struct or union member 'PeerContext::id' is never used
121
103* PEERINFO: 122* PEERINFO:
104 - have gnunet-peerinfo print actual host addresses again 123 - have gnunet-peerinfo print actual host addresses again
105 - add option to gnunet-peerinfo to modify trust value 124 - add option to gnunet-peerinfo to modify trust value
diff --git a/src/datacache/datacache.c b/src/datacache/datacache.c
index bfd48ff63..c8530055d 100644
--- a/src/datacache/datacache.c
+++ b/src/datacache/datacache.c
@@ -35,11 +35,6 @@ struct GNUNET_DATACACHE_Handle
35{ 35{
36 36
37 /** 37 /**
38 * Our datastore plugin (NULL if not available).
39 */
40 struct DatastorePlugin *plugin;
41
42 /**
43 * Bloomfilter to quickly tell if we don't have the content. 38 * Bloomfilter to quickly tell if we don't have the content.
44 */ 39 */
45 struct GNUNET_CONTAINER_BloomFilter *filter; 40 struct GNUNET_CONTAINER_BloomFilter *filter;
diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c
index 0e1ffe155..605cb042d 100644
--- a/src/datastore/test_datastore_api.c
+++ b/src/datastore/test_datastore_api.c
@@ -118,7 +118,6 @@ struct CpsRunContext
118 GNUNET_HashCode key; 118 GNUNET_HashCode key;
119 int i; 119 int i;
120 int rid; 120 int rid;
121 int *iptr;
122 struct GNUNET_SCHEDULER_Handle *sched; 121 struct GNUNET_SCHEDULER_Handle *sched;
123 const struct GNUNET_CONFIGURATION_Handle *cfg; 122 const struct GNUNET_CONFIGURATION_Handle *cfg;
124 void *data; 123 void *data;
diff --git a/src/datastore/test_datastore_api_management.c b/src/datastore/test_datastore_api_management.c
index bcc5b5e85..48daebb1d 100644
--- a/src/datastore/test_datastore_api_management.c
+++ b/src/datastore/test_datastore_api_management.c
@@ -111,7 +111,6 @@ struct CpsRunContext
111 struct GNUNET_SCHEDULER_Handle *sched; 111 struct GNUNET_SCHEDULER_Handle *sched;
112 const struct GNUNET_CONFIGURATION_Handle *cfg; 112 const struct GNUNET_CONFIGURATION_Handle *cfg;
113 void *data; 113 void *data;
114 size_t size;
115 enum RunPhase phase; 114 enum RunPhase phase;
116}; 115};
117 116
diff --git a/src/fs/test_fs_download.c b/src/fs/test_fs_download.c
index 9b85e1ca1..04cd3e5d8 100644
--- a/src/fs/test_fs_download.c
+++ b/src/fs/test_fs_download.c
@@ -51,7 +51,6 @@
51struct PeerContext 51struct PeerContext
52{ 52{
53 struct GNUNET_CONFIGURATION_Handle *cfg; 53 struct GNUNET_CONFIGURATION_Handle *cfg;
54 struct GNUNET_PeerIdentity id;
55#if START_ARM 54#if START_ARM
56 pid_t arm_pid; 55 pid_t arm_pid;
57#endif 56#endif
diff --git a/src/fs/test_fs_list_indexed.c b/src/fs/test_fs_list_indexed.c
index 469280445..868c9d71a 100644
--- a/src/fs/test_fs_list_indexed.c
+++ b/src/fs/test_fs_list_indexed.c
@@ -55,7 +55,6 @@
55struct PeerContext 55struct PeerContext
56{ 56{
57 struct GNUNET_CONFIGURATION_Handle *cfg; 57 struct GNUNET_CONFIGURATION_Handle *cfg;
58 struct GNUNET_PeerIdentity id;
59#if START_ARM 58#if START_ARM
60 pid_t arm_pid; 59 pid_t arm_pid;
61#endif 60#endif
diff --git a/src/fs/test_fs_namespace.c b/src/fs/test_fs_namespace.c
index 7a1a6f81e..90286067d 100644
--- a/src/fs/test_fs_namespace.c
+++ b/src/fs/test_fs_namespace.c
@@ -41,7 +41,6 @@ static struct GNUNET_FS_Handle *fs;
41struct PeerContext 41struct PeerContext
42{ 42{
43 struct GNUNET_CONFIGURATION_Handle *cfg; 43 struct GNUNET_CONFIGURATION_Handle *cfg;
44 struct GNUNET_PeerIdentity id;
45#if START_ARM 44#if START_ARM
46 pid_t arm_pid; 45 pid_t arm_pid;
47#endif 46#endif
diff --git a/src/fs/test_fs_publish.c b/src/fs/test_fs_publish.c
index 9473cddb5..1b79b941d 100644
--- a/src/fs/test_fs_publish.c
+++ b/src/fs/test_fs_publish.c
@@ -52,7 +52,6 @@
52struct PeerContext 52struct PeerContext
53{ 53{
54 struct GNUNET_CONFIGURATION_Handle *cfg; 54 struct GNUNET_CONFIGURATION_Handle *cfg;
55 struct GNUNET_PeerIdentity id;
56#if START_ARM 55#if START_ARM
57 pid_t arm_pid; 56 pid_t arm_pid;
58#endif 57#endif
diff --git a/src/fs/test_fs_start_stop.c b/src/fs/test_fs_start_stop.c
index e25de8e70..eac14b070 100644
--- a/src/fs/test_fs_start_stop.c
+++ b/src/fs/test_fs_start_stop.c
@@ -38,7 +38,6 @@ static struct PeerContext p1;
38struct PeerContext 38struct PeerContext
39{ 39{
40 struct GNUNET_CONFIGURATION_Handle *cfg; 40 struct GNUNET_CONFIGURATION_Handle *cfg;
41 struct GNUNET_PeerIdentity id;
42#if START_ARM 41#if START_ARM
43 pid_t arm_pid; 42 pid_t arm_pid;
44#endif 43#endif
diff --git a/src/fs/test_fs_unindex.c b/src/fs/test_fs_unindex.c
index c2fc8913b..eb10c1db9 100644
--- a/src/fs/test_fs_unindex.c
+++ b/src/fs/test_fs_unindex.c
@@ -51,7 +51,6 @@
51struct PeerContext 51struct PeerContext
52{ 52{
53 struct GNUNET_CONFIGURATION_Handle *cfg; 53 struct GNUNET_CONFIGURATION_Handle *cfg;
54 struct GNUNET_PeerIdentity id;
55#if START_ARM 54#if START_ARM
56 pid_t arm_pid; 55 pid_t arm_pid;
57#endif 56#endif
diff --git a/src/hostlist/test_gnunet_daemon_hostlist.c b/src/hostlist/test_gnunet_daemon_hostlist.c
index 2c3647190..d71340377 100644
--- a/src/hostlist/test_gnunet_daemon_hostlist.c
+++ b/src/hostlist/test_gnunet_daemon_hostlist.c
@@ -44,8 +44,6 @@ static struct GNUNET_SCHEDULER_Handle *sched;
44struct PeerContext 44struct PeerContext
45{ 45{
46 struct GNUNET_CONFIGURATION_Handle *cfg; 46 struct GNUNET_CONFIGURATION_Handle *cfg;
47 struct GNUNET_CORE_Handle *ch;
48 struct GNUNET_PeerIdentity id;
49 struct GNUNET_TRANSPORT_Handle *th; 47 struct GNUNET_TRANSPORT_Handle *th;
50 struct GNUNET_MessageHeader *hello; 48 struct GNUNET_MessageHeader *hello;
51#if START_ARM 49#if START_ARM
diff --git a/src/util/container_heap.c b/src/util/container_heap.c
index efe968e82..4709d97a6 100644
--- a/src/util/container_heap.c
+++ b/src/util/container_heap.c
@@ -28,19 +28,7 @@
28#include "gnunet_protocols.h" 28#include "gnunet_protocols.h"
29#include "gnunet_util_lib.h" 29#include "gnunet_util_lib.h"
30 30
31/* 31/**
32 * Struct that is stored in hashmap, pointers to
33 * locations in min_heap and max_heap.
34 */
35struct GNUNET_CONTAINER_heap_info
36{
37 struct GNUNET_CONTAINER_heap_node *min_loc;
38
39 struct GNUNET_CONTAINER_heap_node *max_loc;
40
41};
42
43/*
44 * Generic heap node structure, contains pointer to parent 32 * Generic heap node structure, contains pointer to parent
45 * left child, right child, and actual neighbor. 33 * left child, right child, and actual neighbor.
46 */ 34 */
@@ -211,7 +199,7 @@ static struct GNUNET_CONTAINER_heap_node *
211getPos (struct GNUNET_CONTAINER_Heap *root, unsigned int pos) 199getPos (struct GNUNET_CONTAINER_Heap *root, unsigned int pos)
212{ 200{
213 struct GNUNET_CONTAINER_heap_node *ret; 201 struct GNUNET_CONTAINER_heap_node *ret;
214 int i; 202 unsigned int i;
215 203
216 ret = NULL; 204 ret = NULL;
217 if (pos > root->size) 205 if (pos > root->size)