aboutsummaryrefslogtreecommitdiff
path: root/src/topology/gnunet-daemon-topology.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-08 23:20:42 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-08 23:20:42 +0000
commita983a0267109b1b6a8e16e476e2f2956a8771b94 (patch)
tree79bcae73cdb7b87b4f55d4396e79baea76ef53a6 /src/topology/gnunet-daemon-topology.c
parenta3f8ef5b89dc44fc3acfb8f081a502f3409e4224 (diff)
downloadgnunet-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/topology/gnunet-daemon-topology.c')
-rw-r--r--src/topology/gnunet-daemon-topology.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c
index 3e4fd2685..38a648afc 100644
--- a/src/topology/gnunet-daemon-topology.c
+++ b/src/topology/gnunet-daemon-topology.c
@@ -774,16 +774,13 @@ disconnect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
774 * Iterator called on each address. 774 * Iterator called on each address.
775 * 775 *
776 * @param cls flag that we will set if we see any addresses 776 * @param cls flag that we will set if we see any addresses
777 * @param tname name of the transport 777 * @param address the address of the peer
778 * @param expiration when will the given address expire 778 * @param expiration when will the given address expire
779 * @param addr the address of the peer
780 * @param addrlen number of bytes in addr
781 * @return GNUNET_SYSERR always, to terminate iteration 779 * @return GNUNET_SYSERR always, to terminate iteration
782 */ 780 */
783static int 781static int
784address_iterator (void *cls, const char *tname, 782address_iterator (void *cls, const struct GNUNET_HELLO_Address *address,
785 struct GNUNET_TIME_Absolute expiration, const void *addr, 783 struct GNUNET_TIME_Absolute expiration)
786 uint16_t addrlen)
787{ 784{
788 int *flag = cls; 785 int *flag = cls;
789 786