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 | |
parent | b1e870d2978eb237e8a4ebf698b314db02cfefb4 (diff) | |
download | gnunet-62d484942e7d01314972d25b93aa7b1ba50e3add.tar.gz gnunet-62d484942e7d01314972d25b93aa7b1ba50e3add.zip |
-fix compiler warning: do not return const double
Diffstat (limited to 'src')
-rw-r--r-- | src/ats/gnunet-service-ats_normalization.c | 7 | ||||
-rw-r--r-- | src/ats/gnunet-service-ats_normalization.h | 7 |
2 files changed, 9 insertions, 5 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 | */ |
525 | const double | 525 | double |
526 | GAS_normalization_get_preferences_by_client (const void *client, | 526 | GAS_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 | |||
582 | struct Property | 583 | struct Property |
583 | { | 584 | { |
584 | uint32_t prop_type; | 585 | 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 | |||
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 | * |