X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ftransport%2Fplugin_transport_template.c;h=d83807a36690fa5d38489c6f112a4052fe071554;hb=502af2167f7c218366666ca4944bd7cc54b5b19a;hp=fb0421ee3fc9ecaa1fa53163ca7f2fa939b02323;hpb=03af5a603b7cc53432249d5854cd412aa90dde0d;p=oweals%2Fgnunet.git diff --git a/src/transport/plugin_transport_template.c b/src/transport/plugin_transport_template.c index fb0421ee3..d83807a36 100644 --- a/src/transport/plugin_transport_template.c +++ b/src/transport/plugin_transport_template.c @@ -152,13 +152,12 @@ struct Plugin */ static ssize_t template_plugin_send (void *cls, - const struct GNUNET_PeerIdentity * - target, + const struct GNUNET_PeerIdentity *target, const char *msgbuf, size_t msgbuf_size, unsigned int priority, struct GNUNET_TIME_Relative timeout, - struct Session *session, + struct Session *session, const void *addr, size_t addrlen, int force_address, @@ -166,6 +165,7 @@ template_plugin_send (void *cls, cont, void *cont_cls) { int bytes_sent = 0; + /* struct Plugin *plugin = cls; */ return bytes_sent; } @@ -181,8 +181,7 @@ template_plugin_send (void *cls, * @param target peer from which to disconnect */ static void -template_plugin_disconnect (void *cls, - const struct GNUNET_PeerIdentity *target) +template_plugin_disconnect (void *cls, const struct GNUNET_PeerIdentity *target) { // struct Plugin *plugin = cls; // FIXME @@ -231,14 +230,12 @@ template_plugin_address_pretty_printer (void *cls, * and transport */ static int -template_plugin_address_suggested (void *cls, - const void *addr, - size_t addrlen) +template_plugin_address_suggested (void *cls, const void *addr, size_t addrlen) { /* struct Plugin *plugin = cls; */ /* check if the address is plausible; if so, - add it to our list! */ + * add it to our list! */ return GNUNET_OK; } @@ -254,10 +251,8 @@ template_plugin_address_suggested (void *cls, * @param addrlen length of the address * @return string representing the same address */ -static const char* -template_plugin_address_to_string (void *cls, - const void *addr, - size_t addrlen) +static const char * +template_plugin_address_to_string (void *cls, const void *addr, size_t addrlen) { GNUNET_break (0); return NULL;