gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r33132 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r33132 - gnunet/src/ats
Date: Wed, 23 Apr 2014 17:45:17 +0200

Author: grothoff
Date: 2014-04-23 17:45:17 +0200 (Wed, 23 Apr 2014)
New Revision: 33132

Modified:
   gnunet/src/ats/gnunet-service-ats_normalization.c
   gnunet/src/ats/gnunet-service-ats_normalization.h
Log:
-fix compiler warning: do not return const double

Modified: gnunet/src/ats/gnunet-service-ats_normalization.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_normalization.c   2014-04-23 15:44:56 UTC 
(rev 33131)
+++ gnunet/src/ats/gnunet-service-ats_normalization.c   2014-04-23 15:45:17 UTC 
(rev 33132)
@@ -522,9 +522,10 @@
  * @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 @@
   return norm_values;
 }
 
+
 /**
  * Quality Normalization
  */
-
 struct Property
 {
   uint32_t prop_type;

Modified: gnunet/src/ats/gnunet-service-ats_normalization.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_normalization.h   2014-04-23 15:44:56 UTC 
(rev 33131)
+++ gnunet/src/ats/gnunet-service-ats_normalization.h   2014-04-23 15:45:17 UTC 
(rev 33132)
@@ -48,6 +48,7 @@
     uint32_t type,
     double prop_rel);
 
+
 /**
  * Get the normalized preference values for a specific peer
  *
@@ -78,9 +79,10 @@
  * @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 @@
 void
 GAS_normalization_preference_client_disconnect (void *client);
 
+
 /**
  * Start the normalization component
  *




reply via email to

[Prev in Thread] Current Thread [Next in Thread]