-fix compiler warning: do not return const double
authorChristian Grothoff <christian@grothoff.org>
Wed, 23 Apr 2014 15:45:17 +0000 (15:45 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 23 Apr 2014 15:45:17 +0000 (15:45 +0000)
src/ats/gnunet-service-ats_normalization.c
src/ats/gnunet-service-ats_normalization.h

index d75ebf42d15e310b278a4f2859b592d21f90b7a2..3ecbabbf80baeebe2e5334a283c0de5aa63b27ad 100644 (file)
@@ -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;
index f12c39fe145be72c91dee92f2aa58d9dfe59726c..0a4625ab40d38f1aaed8225ab550901d7b664438 100644 (file)
@@ -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
  *