diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-04-23 15:45:17 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-04-23 15:45:17 +0000 |
commit | 62d484942e7d01314972d25b93aa7b1ba50e3add (patch) | |
tree | e7f6d28634b79fff39a4e9d452e22cd281dc4c31 /src/ats/gnunet-service-ats_normalization.h | |
parent | b1e870d2978eb237e8a4ebf698b314db02cfefb4 (diff) | |
download | gnunet-62d484942e7d01314972d25b93aa7b1ba50e3add.tar.gz gnunet-62d484942e7d01314972d25b93aa7b1ba50e3add.zip |
-fix compiler warning: do not return const double
Diffstat (limited to 'src/ats/gnunet-service-ats_normalization.h')
-rw-r--r-- | src/ats/gnunet-service-ats_normalization.h | 7 |
1 files changed, 5 insertions, 2 deletions
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 | |||
48 | uint32_t type, | 48 | uint32_t type, |
49 | double prop_rel); | 49 | double prop_rel); |
50 | 50 | ||
51 | |||
51 | /** | 52 | /** |
52 | * Get the normalized preference values for a specific peer | 53 | * Get the normalized preference values for a specific peer |
53 | * | 54 | * |
@@ -78,9 +79,10 @@ GAS_normalization_get_properties (struct ATS_Address *address); | |||
78 | * @param pref the preference type | 79 | * @param pref the preference type |
79 | * @return the value | 80 | * @return the value |
80 | */ | 81 | */ |
81 | const double | 82 | double |
82 | GAS_normalization_get_preferences_by_client (const void *client, | 83 | GAS_normalization_get_preferences_by_client (const void *client, |
83 | struct GNUNET_PeerIdentity *peer, enum GNUNET_ATS_PreferenceKind pref); | 84 | const struct GNUNET_PeerIdentity *peer, |
85 | enum GNUNET_ATS_PreferenceKind pref); | ||
84 | 86 | ||
85 | /** | 87 | /** |
86 | * Normalize an updated preference value | 88 | * Normalize an updated preference value |
@@ -119,6 +121,7 @@ GAS_normalization_normalize_property (struct GNUNET_CONTAINER_MultiPeerMap *addr | |||
119 | void | 121 | void |
120 | GAS_normalization_preference_client_disconnect (void *client); | 122 | GAS_normalization_preference_client_disconnect (void *client); |
121 | 123 | ||
124 | |||
122 | /** | 125 | /** |
123 | * Start the normalization component | 126 | * Start the normalization component |
124 | * | 127 | * |