diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-09 22:04:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-09 22:04:11 +0000 |
commit | 1dd22b0d681848af9980e5202e38b1a307cf2094 (patch) | |
tree | e013a7f735f2e967222890d87136bd5b76c1f803 /src/transport/plugin_transport_http_common.c | |
parent | c9f75566447fd3a9c5c304dbc8e31fd68b6aa3ed (diff) | |
download | gnunet-1dd22b0d681848af9980e5202e38b1a307cf2094.tar.gz gnunet-1dd22b0d681848af9980e5202e38b1a307cf2094.zip |
clarify prettyprinter API and protocols, make sure implementations are consistent in their implemenation, doxygen fixes, indentation fixes, subtle semantic fixes
Diffstat (limited to 'src/transport/plugin_transport_http_common.c')
-rw-r--r-- | src/transport/plugin_transport_http_common.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c index f5712db58..02129f37d 100644 --- a/src/transport/plugin_transport_http_common.c +++ b/src/transport/plugin_transport_http_common.c | |||
@@ -207,18 +207,24 @@ http_common_plugin_address_pretty_printer (void *cls, | |||
207 | void *asc_cls) | 207 | void *asc_cls) |
208 | { | 208 | { |
209 | const struct HttpAddress *address = addr; | 209 | const struct HttpAddress *address = addr; |
210 | 210 | const char *ret; | |
211 | if (NULL | 211 | |
212 | == http_common_plugin_address_to_string (NULL, type, address, addrlen)) | 212 | ret = http_common_plugin_address_to_string (NULL, |
213 | asc (asc_cls, NULL, GNUNET_SYSERR); | 213 | type, |
214 | else | 214 | address, |
215 | asc (asc_cls, | 215 | addrlen); |
216 | http_common_plugin_address_to_string (NULL, type, address, addrlen), | 216 | asc (asc_cls, |
217 | GNUNET_OK); | 217 | NULL, |
218 | asc (asc_cls, NULL, GNUNET_OK); | 218 | (NULL == ret) ? GNUNET_SYSERR : GNUNET_OK); |
219 | asc (asc_cls, | ||
220 | NULL, | ||
221 | GNUNET_OK); | ||
219 | } | 222 | } |
220 | 223 | ||
221 | 224 | ||
225 | /** | ||
226 | * FIXME. | ||
227 | */ | ||
222 | const char * | 228 | const char * |
223 | http_common_plugin_address_to_url (void *cls, | 229 | http_common_plugin_address_to_url (void *cls, |
224 | const void *addr, | 230 | const void *addr, |