diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-08 19:00:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-08 19:00:19 +0000 |
commit | fe947a9704bed14c2fc74b2f2069596fe884cbad (patch) | |
tree | 644efdaa37d692b09f8e279bfe5e8b2ebe81448b /src/peerinfo | |
parent | a8b0ab037820f6a9f405be3855ce8d3ebbd4399b (diff) | |
download | gnunet-fe947a9704bed14c2fc74b2f2069596fe884cbad.tar.gz gnunet-fe947a9704bed14c2fc74b2f2069596fe884cbad.zip |
better comments
Diffstat (limited to 'src/peerinfo')
-rw-r--r-- | src/peerinfo/gnunet-service-peerinfo.c | 9 | ||||
-rw-r--r-- | src/peerinfo/peerinfo_api.c | 1 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c index 281779897..3608dab84 100644 --- a/src/peerinfo/gnunet-service-peerinfo.c +++ b/src/peerinfo/gnunet-service-peerinfo.c | |||
@@ -104,6 +104,10 @@ static char *trustDirectory; | |||
104 | * Address iterator that causes expired entries to be discarded. | 104 | * Address iterator that causes expired entries to be discarded. |
105 | * | 105 | * |
106 | * @param cls pointer to the current time | 106 | * @param cls pointer to the current time |
107 | * @param tname name of the transport | ||
108 | * @param expiration expiration time for the address | ||
109 | * @param addr the address | ||
110 | * @param addrlen length of addr in bytes | ||
107 | * @return GNUNET_NO if expiration smaller than the current time | 111 | * @return GNUNET_NO if expiration smaller than the current time |
108 | */ | 112 | */ |
109 | static int | 113 | static int |
@@ -176,7 +180,6 @@ lookup_host_entry (const struct GNUNET_PeerIdentity *id) | |||
176 | * Add a host to the list. | 180 | * Add a host to the list. |
177 | * | 181 | * |
178 | * @param identity the identity of the host | 182 | * @param identity the identity of the host |
179 | * @param protocol the protocol for the host | ||
180 | */ | 183 | */ |
181 | static void | 184 | static void |
182 | add_host_to_known_hosts (const struct GNUNET_PeerIdentity *identity) | 185 | add_host_to_known_hosts (const struct GNUNET_PeerIdentity *identity) |
@@ -398,7 +401,9 @@ bind_address (const struct GNUNET_PeerIdentity *peer, | |||
398 | * argument or for all known hosts and change their trust values by | 401 | * argument or for all known hosts and change their trust values by |
399 | * the given delta. | 402 | * the given delta. |
400 | * | 403 | * |
401 | * @param only NULL to hit all hosts | 404 | * @param only NULL to hit all hosts, otherwise specifies a particular target |
405 | * @param trust_change how much should the trust be changed | ||
406 | * @param client who is making the request (and will thus receive our confirmation) | ||
402 | */ | 407 | */ |
403 | static void | 408 | static void |
404 | send_to_each_host (const struct GNUNET_PeerIdentity *only, | 409 | send_to_each_host (const struct GNUNET_PeerIdentity *only, |
diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c index 57197798b..14efa1708 100644 --- a/src/peerinfo/peerinfo_api.c +++ b/src/peerinfo/peerinfo_api.c | |||
@@ -76,7 +76,6 @@ copy_and_free (void *cls, size_t size, void *buf) | |||
76 | * @param sched scheduler to use | 76 | * @param sched scheduler to use |
77 | * @param peer identity of the peer | 77 | * @param peer identity of the peer |
78 | * @param hello the verified (!) HELLO message | 78 | * @param hello the verified (!) HELLO message |
79 | * @param expiration when the HELLO will expire | ||
80 | */ | 79 | */ |
81 | void | 80 | void |
82 | GNUNET_PEERINFO_add_peer (const struct GNUNET_CONFIGURATION_Handle *cfg, | 81 | GNUNET_PEERINFO_add_peer (const struct GNUNET_CONFIGURATION_Handle *cfg, |