diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-30 18:58:25 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-30 18:58:25 +0000 |
commit | 221afde829c4bf9d20da68d42352697a6abf7f51 (patch) | |
tree | 56bb80350b8f56a2f2792b215fd9050c2c69efc2 /src | |
parent | db6f2016ec9456dc08debcc00af16f5bb7c32a72 (diff) | |
download | gnunet-221afde829c4bf9d20da68d42352697a6abf7f51.tar.gz gnunet-221afde829c4bf9d20da68d42352697a6abf7f51.zip |
bugfixes
Diffstat (limited to 'src')
-rw-r--r-- | src/datacache/datacache.c | 5 | ||||
-rw-r--r-- | src/datastore/test_datastore_api.c | 1 | ||||
-rw-r--r-- | src/datastore/test_datastore_api_management.c | 1 | ||||
-rw-r--r-- | src/fs/test_fs_download.c | 1 | ||||
-rw-r--r-- | src/fs/test_fs_list_indexed.c | 1 | ||||
-rw-r--r-- | src/fs/test_fs_namespace.c | 1 | ||||
-rw-r--r-- | src/fs/test_fs_publish.c | 1 | ||||
-rw-r--r-- | src/fs/test_fs_start_stop.c | 1 | ||||
-rw-r--r-- | src/fs/test_fs_unindex.c | 1 | ||||
-rw-r--r-- | src/hostlist/test_gnunet_daemon_hostlist.c | 2 | ||||
-rw-r--r-- | src/util/container_heap.c | 16 |
11 files changed, 2 insertions, 29 deletions
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 @@ | |||
51 | struct PeerContext | 51 | struct 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 @@ | |||
55 | struct PeerContext | 55 | struct 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; | |||
41 | struct PeerContext | 41 | struct 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 @@ | |||
52 | struct PeerContext | 52 | struct 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; | |||
38 | struct PeerContext | 38 | struct 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 @@ | |||
51 | struct PeerContext | 51 | struct 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; | |||
44 | struct PeerContext | 44 | struct 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 | */ | ||
35 | struct 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 * | |||
211 | getPos (struct GNUNET_CONTAINER_Heap *root, unsigned int pos) | 199 | getPos (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) |