From: Christian Grothoff Date: Wed, 23 Apr 2014 15:45:17 +0000 (+0000) Subject: -fix compiler warning: do not return const double X-Git-Tag: initial-import-from-subversion-38251~4151 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=62d484942e7d01314972d25b93aa7b1ba50e3add;p=oweals%2Fgnunet.git -fix compiler warning: do not return const double --- diff --git a/src/ats/gnunet-service-ats_normalization.c b/src/ats/gnunet-service-ats_normalization.c index d75ebf42d..3ecbabbf8 100644 --- a/src/ats/gnunet-service-ats_normalization.c +++ b/src/ats/gnunet-service-ats_normalization.c @@ -522,9 +522,10 @@ GAS_normalization_get_preferences_by_peer (const struct GNUNET_PeerIdentity *id) * @param pref the preference type * @return the value */ -const double +double GAS_normalization_get_preferences_by_client (const void *client, - struct GNUNET_PeerIdentity *peer, enum GNUNET_ATS_PreferenceKind pref) + const struct GNUNET_PeerIdentity *peer, + enum GNUNET_ATS_PreferenceKind pref) { struct PreferenceClient *c_cur; struct PreferencePeer *p_cur; @@ -575,10 +576,10 @@ GAS_normalization_get_properties (struct ATS_Address *address) return norm_values; } + /** * Quality Normalization */ - struct Property { uint32_t prop_type; diff --git a/src/ats/gnunet-service-ats_normalization.h b/src/ats/gnunet-service-ats_normalization.h index f12c39fe1..0a4625ab4 100644 --- a/src/ats/gnunet-service-ats_normalization.h +++ b/src/ats/gnunet-service-ats_normalization.h @@ -48,6 +48,7 @@ typedef void uint32_t type, double prop_rel); + /** * Get the normalized preference values for a specific peer * @@ -78,9 +79,10 @@ GAS_normalization_get_properties (struct ATS_Address *address); * @param pref the preference type * @return the value */ -const double +double GAS_normalization_get_preferences_by_client (const void *client, - struct GNUNET_PeerIdentity *peer, enum GNUNET_ATS_PreferenceKind pref); + const struct GNUNET_PeerIdentity *peer, + enum GNUNET_ATS_PreferenceKind pref); /** * Normalize an updated preference value @@ -119,6 +121,7 @@ GAS_normalization_normalize_property (struct GNUNET_CONTAINER_MultiPeerMap *addr void GAS_normalization_preference_client_disconnect (void *client); + /** * Start the normalization component *