aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_normalization.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-04-23 15:45:17 +0000
committerChristian Grothoff <christian@grothoff.org>2014-04-23 15:45:17 +0000
commit62d484942e7d01314972d25b93aa7b1ba50e3add (patch)
treee7f6d28634b79fff39a4e9d452e22cd281dc4c31 /src/ats/gnunet-service-ats_normalization.c
parentb1e870d2978eb237e8a4ebf698b314db02cfefb4 (diff)
downloadgnunet-62d484942e7d01314972d25b93aa7b1ba50e3add.tar.gz
gnunet-62d484942e7d01314972d25b93aa7b1ba50e3add.zip
-fix compiler warning: do not return const double
Diffstat (limited to 'src/ats/gnunet-service-ats_normalization.c')
-rw-r--r--src/ats/gnunet-service-ats_normalization.c7
1 files changed, 4 insertions, 3 deletions
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)
522 * @param pref the preference type 522 * @param pref the preference type
523 * @return the value 523 * @return the value
524 */ 524 */
525const double 525double
526GAS_normalization_get_preferences_by_client (const void *client, 526GAS_normalization_get_preferences_by_client (const void *client,
527 struct GNUNET_PeerIdentity *peer, enum GNUNET_ATS_PreferenceKind pref) 527 const struct GNUNET_PeerIdentity *peer,
528 enum GNUNET_ATS_PreferenceKind pref)
528{ 529{
529 struct PreferenceClient *c_cur; 530 struct PreferenceClient *c_cur;
530 struct PreferencePeer *p_cur; 531 struct PreferencePeer *p_cur;
@@ -575,10 +576,10 @@ GAS_normalization_get_properties (struct ATS_Address *address)
575 return norm_values; 576 return norm_values;
576} 577}
577 578
579
578/** 580/**
579 * Quality Normalization 581 * Quality Normalization
580 */ 582 */
581
582struct Property 583struct Property
583{ 584{
584 uint32_t prop_type; 585 uint32_t prop_type;