diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-08 23:20:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-08 23:20:42 +0000 |
commit | a983a0267109b1b6a8e16e476e2f2956a8771b94 (patch) | |
tree | 79bcae73cdb7b87b4f55d4396e79baea76ef53a6 /src/hostlist | |
parent | a3f8ef5b89dc44fc3acfb8f081a502f3409e4224 (diff) | |
download | gnunet-a983a0267109b1b6a8e16e476e2f2956a8771b94.tar.gz gnunet-a983a0267109b1b6a8e16e476e2f2956a8771b94.zip |
refactoring how we handle peer addresses in peerinfo/ats/transport/hello subsystems -- use a struct instead of 3--4 arguments
Diffstat (limited to 'src/hostlist')
-rw-r--r-- | src/hostlist/hostlist-server.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/hostlist/hostlist-server.c b/src/hostlist/hostlist-server.c index 69d83b4d4..8e79ace1b 100644 --- a/src/hostlist/hostlist-server.c +++ b/src/hostlist/hostlist-server.c | |||
@@ -141,16 +141,13 @@ finish_response (struct HostSet *results) | |||
141 | * Set 'cls' to GNUNET_YES (we have an address!). | 141 | * Set 'cls' to GNUNET_YES (we have an address!). |
142 | * | 142 | * |
143 | * @param cls closure, an 'int*' | 143 | * @param cls closure, an 'int*' |
144 | * @param tname name of the transport (ignored) | 144 | * @param address the address (ignored) |
145 | * @param expiration expiration time (call is ignored if this is in the past) | 145 | * @param expiration expiration time (call is ignored if this is in the past) |
146 | * @param addr the address (ignored) | ||
147 | * @param addrlen length of the address (ignored) | ||
148 | * @return GNUNET_SYSERR to stop iterating (unless expiration has occured) | 146 | * @return GNUNET_SYSERR to stop iterating (unless expiration has occured) |
149 | */ | 147 | */ |
150 | static int | 148 | static int |
151 | check_has_addr (void *cls, const char *tname, | 149 | check_has_addr (void *cls, const struct GNUNET_HELLO_Address *address, |
152 | struct GNUNET_TIME_Absolute expiration, const void *addr, | 150 | struct GNUNET_TIME_Absolute expiration) |
153 | uint16_t addrlen) | ||
154 | { | 151 | { |
155 | int *arg = cls; | 152 | int *arg = cls; |
156 | 153 | ||