aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo-tool/gnunet-peerinfo.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-29 20:47:18 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-29 20:47:18 +0000
commit71ea5bd2d05058008e604ffd42993be9c7250e04 (patch)
treea5074671ddfaa9d1621a4182fc95a91a98b3d536 /src/peerinfo-tool/gnunet-peerinfo.c
parentb335777fd435142c16eb05e86c8a64a4b1a45447 (diff)
downloadgnunet-71ea5bd2d05058008e604ffd42993be9c7250e04.tar.gz
gnunet-71ea5bd2d05058008e604ffd42993be9c7250e04.zip
-fixing indentation
Diffstat (limited to 'src/peerinfo-tool/gnunet-peerinfo.c')
-rw-r--r--src/peerinfo-tool/gnunet-peerinfo.c17
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 */
103static int 103static int
104count_address (void *cls, 104count_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 */
123static int 122static int
124print_address (void *cls, 123print_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