From: Christian Grothoff Date: Tue, 29 May 2012 12:33:33 +0000 (+0000) Subject: -removing bogus const X-Git-Tag: initial-import-from-subversion-38251~13364 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=699f6c4038829f8dc621ef9aacba27fb84037155;p=oweals%2Fgnunet.git -removing bogus const --- diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h index 6039809f7..d1e03d7c9 100644 --- a/src/include/gnunet_transport_plugin.h +++ b/src/include/gnunet_transport_plugin.h @@ -136,7 +136,7 @@ typedef struct * @param addrlen length of the address * @return ATS Information containing the network type */ -typedef const struct GNUNET_ATS_Information +typedef struct GNUNET_ATS_Information (*GNUNET_TRANSPORT_AddressToType) (void *cls, const struct sockaddr *addr, size_t addrlen); diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 93fd0d685..c200cb55b 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -371,7 +371,7 @@ plugin_env_session_end (void *cls, const struct GNUNET_PeerIdentity *peer, * @param addrlen length of the address * @return ATS Information containing the network type */ -static const struct GNUNET_ATS_Information +static struct GNUNET_ATS_Information plugin_env_address_to_type (void *cls, const struct sockaddr *addr, size_t addrlen)