diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-29 20:47:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-29 20:47:18 +0000 |
commit | 71ea5bd2d05058008e604ffd42993be9c7250e04 (patch) | |
tree | a5074671ddfaa9d1621a4182fc95a91a98b3d536 /src/transport/transport_api_address_to_string.c | |
parent | b335777fd435142c16eb05e86c8a64a4b1a45447 (diff) | |
download | gnunet-71ea5bd2d05058008e604ffd42993be9c7250e04.tar.gz gnunet-71ea5bd2d05058008e604ffd42993be9c7250e04.zip |
-fixing indentation
Diffstat (limited to 'src/transport/transport_api_address_to_string.c')
-rw-r--r-- | src/transport/transport_api_address_to_string.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/transport/transport_api_address_to_string.c b/src/transport/transport_api_address_to_string.c index 5c44c288b..4d809530a 100644 --- a/src/transport/transport_api_address_to_string.c +++ b/src/transport/transport_api_address_to_string.c | |||
@@ -76,7 +76,7 @@ address_response_processor (void *cls, const struct GNUNET_MessageHeader *msg) | |||
76 | return; | 76 | return; |
77 | } | 77 | } |
78 | GNUNET_break (ntohs (msg->type) == | 78 | GNUNET_break (ntohs (msg->type) == |
79 | GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING_REPLY); | 79 | GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING_REPLY); |
80 | size = ntohs (msg->size); | 80 | size = ntohs (msg->size); |
81 | if (size == sizeof (struct GNUNET_MessageHeader)) | 81 | if (size == sizeof (struct GNUNET_MessageHeader)) |
82 | { | 82 | { |
@@ -116,12 +116,13 @@ address_response_processor (void *cls, const struct GNUNET_MessageHeader *msg) | |||
116 | * @return handle to cancel the operation, NULL on error | 116 | * @return handle to cancel the operation, NULL on error |
117 | */ | 117 | */ |
118 | struct GNUNET_TRANSPORT_AddressToStringContext * | 118 | struct GNUNET_TRANSPORT_AddressToStringContext * |
119 | GNUNET_TRANSPORT_address_to_string (const struct GNUNET_CONFIGURATION_Handle *cfg, | 119 | GNUNET_TRANSPORT_address_to_string (const struct GNUNET_CONFIGURATION_Handle |
120 | const struct GNUNET_HELLO_Address *address, | 120 | *cfg, |
121 | int numeric, | 121 | const struct GNUNET_HELLO_Address *address, |
122 | struct GNUNET_TIME_Relative timeout, | 122 | int numeric, |
123 | GNUNET_TRANSPORT_AddressToStringCallback aluc, | 123 | struct GNUNET_TIME_Relative timeout, |
124 | void *aluc_cls) | 124 | GNUNET_TRANSPORT_AddressToStringCallback |
125 | aluc, void *aluc_cls) | ||
125 | { | 126 | { |
126 | size_t len; | 127 | size_t len; |
127 | size_t alen; | 128 | size_t alen; |
@@ -145,8 +146,7 @@ GNUNET_TRANSPORT_address_to_string (const struct GNUNET_CONFIGURATION_Handle *cf | |||
145 | if (client == NULL) | 146 | if (client == NULL) |
146 | return NULL; | 147 | return NULL; |
147 | #if DEBUG_TRANSPORT | 148 | #if DEBUG_TRANSPORT |
148 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 149 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "GNUNET_TRANSPORT_address_to_string\n"); |
149 | "GNUNET_TRANSPORT_address_to_string\n"); | ||
150 | #endif | 150 | #endif |
151 | msg = GNUNET_malloc (len); | 151 | msg = GNUNET_malloc (len); |
152 | msg->header.size = htons (len); | 152 | msg->header.size = htons (len); |
@@ -180,8 +180,8 @@ GNUNET_TRANSPORT_address_to_string (const struct GNUNET_CONFIGURATION_Handle *cf | |||
180 | */ | 180 | */ |
181 | void | 181 | void |
182 | GNUNET_TRANSPORT_address_to_string_cancel (struct | 182 | GNUNET_TRANSPORT_address_to_string_cancel (struct |
183 | GNUNET_TRANSPORT_AddressToStringContext | 183 | GNUNET_TRANSPORT_AddressToStringContext |
184 | *alc) | 184 | *alc) |
185 | { | 185 | { |
186 | GNUNET_CLIENT_disconnect (alc->client, GNUNET_NO); | 186 | GNUNET_CLIENT_disconnect (alc->client, GNUNET_NO); |
187 | GNUNET_free (alc); | 187 | GNUNET_free (alc); |