diff options
Diffstat (limited to 'src/peerinfo-tool/gnunet-peerinfo.c')
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index d54eb1081..337a9b2ab 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c | |||
@@ -101,8 +101,7 @@ process_resolved_address (void *cls, const char *address) | |||
101 | * @return GNUNET_OK to keep the address and continue | 101 | * @return GNUNET_OK to keep the address and continue |
102 | */ | 102 | */ |
103 | static int | 103 | static int |
104 | count_address (void *cls, | 104 | count_address (void *cls, const struct GNUNET_HELLO_Address *address, |
105 | const struct GNUNET_HELLO_Address *address, | ||
106 | struct GNUNET_TIME_Absolute expiration) | 105 | struct GNUNET_TIME_Absolute expiration) |
107 | { | 106 | { |
108 | struct PrintContext *pc = cls; | 107 | struct PrintContext *pc = cls; |
@@ -121,17 +120,15 @@ count_address (void *cls, | |||
121 | * @return GNUNET_OK to keep the address and continue | 120 | * @return GNUNET_OK to keep the address and continue |
122 | */ | 121 | */ |
123 | static int | 122 | static int |
124 | print_address (void *cls, | 123 | print_address (void *cls, const struct GNUNET_HELLO_Address *address, |
125 | const struct GNUNET_HELLO_Address *address, | ||
126 | struct GNUNET_TIME_Absolute expiration) | 124 | struct GNUNET_TIME_Absolute expiration) |
127 | { | 125 | { |
128 | struct PrintContext *pc = cls; | 126 | struct PrintContext *pc = cls; |
129 | GNUNET_TRANSPORT_address_to_string (cfg, | 127 | |
130 | address, | 128 | GNUNET_TRANSPORT_address_to_string (cfg, address, no_resolve, |
131 | no_resolve, | 129 | GNUNET_TIME_relative_multiply |
132 | GNUNET_TIME_relative_multiply | 130 | (GNUNET_TIME_UNIT_SECONDS, 10), |
133 | (GNUNET_TIME_UNIT_SECONDS, 10), | 131 | &process_resolved_address, pc); |
134 | &process_resolved_address, pc); | ||
135 | return GNUNET_OK; | 132 | return GNUNET_OK; |
136 | } | 133 | } |
137 | 134 | ||