diff options
author | Supriti Singh <supritisingh08@gmail.com> | 2014-08-19 18:34:58 +0000 |
---|---|---|
committer | Supriti Singh <supritisingh08@gmail.com> | 2014-08-19 18:34:58 +0000 |
commit | 26542dad2ef4741edd18e7a2fb1f0745d8189738 (patch) | |
tree | b12258441c34cf56ca8532895af0ec1ef28d64a1 /src | |
parent | 1b505820b41ebaa051a257c7191ac47adbb745fd (diff) | |
download | gnunet-26542dad2ef4741edd18e7a2fb1f0745d8189738.tar.gz gnunet-26542dad2ef4741edd18e7a2fb1f0745d8189738.zip |
Fixing warning
Diffstat (limited to 'src')
-rw-r--r-- | src/dht/gnunet-service-xdht_neighbours.h | 26 | ||||
-rw-r--r-- | src/dht/gnunet_dht_profiler.c | 2 |
2 files changed, 27 insertions, 1 deletions
diff --git a/src/dht/gnunet-service-xdht_neighbours.h b/src/dht/gnunet-service-xdht_neighbours.h index e1fae570d..57ed68434 100644 --- a/src/dht/gnunet-service-xdht_neighbours.h +++ b/src/dht/gnunet-service-xdht_neighbours.h | |||
@@ -75,6 +75,32 @@ GDS_NEIGHBOURS_handle_get(const struct GNUNET_HashCode *key, | |||
75 | uint32_t desired_replication_level); | 75 | uint32_t desired_replication_level); |
76 | 76 | ||
77 | /** | 77 | /** |
78 | * Send the get result to requesting client. | ||
79 | * @param key Key of the requested data. | ||
80 | * @param type Block type | ||
81 | * @param target_peer Next peer to forward the message to. | ||
82 | * @param source_peer Peer which has the data for the key. | ||
83 | * @param put_path_length Number of peers in @a put_path | ||
84 | * @param put_path Path taken to put the data at its stored location. | ||
85 | * @param get_path_length Number of peers in @a get_path | ||
86 | * @param get_path Path taken to reach to the location of the key. | ||
87 | * @param expiration When will this result expire? | ||
88 | * @param data Payload to store | ||
89 | * @param data_size Size of the @a data | ||
90 | */ | ||
91 | void | ||
92 | GDS_NEIGHBOURS_send_get_result (const struct GNUNET_HashCode *key, | ||
93 | enum GNUNET_BLOCK_Type type, | ||
94 | const struct GNUNET_PeerIdentity *target_peer, | ||
95 | const struct GNUNET_PeerIdentity *source_peer, | ||
96 | unsigned int put_path_length, | ||
97 | const struct GNUNET_PeerIdentity *put_path, | ||
98 | unsigned int get_path_length, | ||
99 | const struct GNUNET_PeerIdentity *get_path, | ||
100 | struct GNUNET_TIME_Absolute expiration, | ||
101 | const void *data, size_t data_size); | ||
102 | |||
103 | /** | ||
78 | * Construct a trail teardown message and forward it to target friend. | 104 | * Construct a trail teardown message and forward it to target friend. |
79 | * @param trail_id Unique identifier of the trail. | 105 | * @param trail_id Unique identifier of the trail. |
80 | * @param trail_direction Direction of trail. | 106 | * @param trail_direction Direction of trail. |
diff --git a/src/dht/gnunet_dht_profiler.c b/src/dht/gnunet_dht_profiler.c index 31671545d..9c0693e43 100644 --- a/src/dht/gnunet_dht_profiler.c +++ b/src/dht/gnunet_dht_profiler.c | |||
@@ -543,7 +543,7 @@ get_iter (void *cls, | |||
543 | if (n_active == n_gets_fail + n_gets_ok) | 543 | if (n_active == n_gets_fail + n_gets_ok) |
544 | { | 544 | { |
545 | average_put_path_length = (double)total_put_path_length/(double)n_active; | 545 | average_put_path_length = (double)total_put_path_length/(double)n_active; |
546 | average_get_path_length = (double)total_get_path_length/(double)n_active; | 546 | average_get_path_length = (double)total_get_path_length/(double )n_active; |
547 | summarize (); | 547 | summarize (); |
548 | } | 548 | } |
549 | } | 549 | } |