aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_common.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-23 19:13:45 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-23 19:13:45 +0000
commitcb2ba3aea878701a9bf816892de389eb45ca9aa4 (patch)
treecc7bdcb698f9baa7a627ac5adec6a2d9b0258d54 /src/transport/plugin_transport_http_common.h
parentcb0dcdd39476f0d8d8b599a8b8673c8b7b10fe32 (diff)
downloadgnunet-cb2ba3aea878701a9bf816892de389eb45ca9aa4.tar.gz
gnunet-cb2ba3aea878701a9bf816892de389eb45ca9aa4.zip
-avoid passing ambiguously typed 'cls' pointer to address_to_string routine in http_common, code cleanup
Diffstat (limited to 'src/transport/plugin_transport_http_common.h')
-rw-r--r--src/transport/plugin_transport_http_common.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/transport/plugin_transport_http_common.h b/src/transport/plugin_transport_http_common.h
index c3fa1bba4..04d3adc29 100644
--- a/src/transport/plugin_transport_http_common.h
+++ b/src/transport/plugin_transport_http_common.h
@@ -89,7 +89,8 @@ GNUNET_NETWORK_STRUCT_END
89struct SplittedHTTPAddress; 89struct SplittedHTTPAddress;
90 90
91struct SplittedHTTPAddress * 91struct SplittedHTTPAddress *
92http_split_address (const char * addr); 92http_split_address (const char *addr);
93
93 94
94/** 95/**
95 * Convert the transports address to a nice, human-readable 96 * Convert the transports address to a nice, human-readable
@@ -106,12 +107,14 @@ http_split_address (const char * addr);
106 * @param asc_cls closure for @a asc 107 * @param asc_cls closure for @a asc
107 */ 108 */
108void 109void
109http_common_plugin_address_pretty_printer (void *cls, const char *type, 110http_common_plugin_address_pretty_printer (void *cls,
110 const void *addr, size_t addrlen, 111 const char *type,
112 const void *addr,
113 size_t addrlen,
111 int numeric, 114 int numeric,
112 struct GNUNET_TIME_Relative timeout, 115 struct GNUNET_TIME_Relative timeout,
113 GNUNET_TRANSPORT_AddressStringCallback 116 GNUNET_TRANSPORT_AddressStringCallback asc,
114 asc, void *asc_cls); 117 void *asc_cls);
115 118
116 119
117/** 120/**
@@ -120,15 +123,13 @@ http_common_plugin_address_pretty_printer (void *cls, const char *type,
120 * address and that the next call to this function is allowed 123 * address and that the next call to this function is allowed
121 * to override the address again. 124 * to override the address again.
122 * 125 *
123 * @param cls closure 126 * @param plugin name of the plugin
124 * @param plugin the plugin
125 * @param addr binary address 127 * @param addr binary address
126 * @param addrlen length of the address 128 * @param addrlen length of the address
127 * @return string representing the same address 129 * @return string representing the same address
128 */ 130 */
129const char * 131const char *
130http_common_plugin_address_to_string (void *cls, 132http_common_plugin_address_to_string (const char *plugin,
131 const char *plugin,
132 const void *addr, 133 const void *addr,
133 size_t addrlen); 134 size_t addrlen);
134 135