[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35111 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35111 - gnunet/src/ats |
Date: |
Thu, 5 Feb 2015 20:57:26 +0100 |
Author: grothoff
Date: 2015-02-05 20:57:26 +0100 (Thu, 05 Feb 2015)
New Revision: 35111
Modified:
gnunet/src/ats/gnunet-service-ats_preferences.c
gnunet/src/ats/gnunet-service-ats_preferences.h
Log:
avoid void *, use proper type for client
Modified: gnunet/src/ats/gnunet-service-ats_preferences.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_preferences.c 2015-02-05 19:55:31 UTC
(rev 35110)
+++ gnunet/src/ats/gnunet-service-ats_preferences.c 2015-02-05 19:57:26 UTC
(rev 35111)
@@ -207,7 +207,7 @@
static struct GAS_Addresses_Preference_Clients *
-find_preference_client (void *client)
+find_preference_client (struct GNUNET_SERVER_Client *client)
{
struct GAS_Addresses_Preference_Clients *cur;
@@ -516,7 +516,7 @@
* @param score_abs the new preference score
*/
static void
-preference_change (void *client,
+preference_change (struct GNUNET_SERVER_Client *client,
const struct GNUNET_PeerIdentity *peer,
enum GNUNET_ATS_PreferenceKind kind,
float score_abs)
@@ -715,7 +715,7 @@
* @param score_abs the normalized score
*/
void
-GAS_normalization_normalize_preference (void *client,
+GAS_normalization_normalize_preference (struct GNUNET_SERVER_Client *client,
const struct GNUNET_PeerIdentity *peer,
enum GNUNET_ATS_PreferenceKind kind,
float score_abs)
@@ -846,7 +846,7 @@
* @return the value
*/
double
-GAS_normalization_get_preferences_by_client (const void *client,
+GAS_normalization_get_preferences_by_client (const struct GNUNET_SERVER_Client
*client,
const struct GNUNET_PeerIdentity
*peer,
enum GNUNET_ATS_PreferenceKind
pref)
{
@@ -881,7 +881,7 @@
* @param client the client
*/
void
-GAS_normalization_preference_client_disconnect (void *client)
+GAS_normalization_preference_client_disconnect (struct GNUNET_SERVER_Client
*client)
{
struct PreferenceClient *c_cur;
/* Find preference client */
@@ -897,4 +897,3 @@
GNUNET_CONTAINER_DLL_remove(pc_head, pc_tail, c_cur);
free_client (c_cur);
}
-
Modified: gnunet/src/ats/gnunet-service-ats_preferences.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_preferences.h 2015-02-05 19:55:31 UTC
(rev 35110)
+++ gnunet/src/ats/gnunet-service-ats_preferences.h 2015-02-05 19:57:26 UTC
(rev 35111)
@@ -70,7 +70,7 @@
* @return the value
*/
double
-GAS_normalization_get_preferences_by_client (const void *client,
+GAS_normalization_get_preferences_by_client (const struct GNUNET_SERVER_Client
*client,
const struct GNUNET_PeerIdentity
*peer,
enum GNUNET_ATS_PreferenceKind
pref);
@@ -84,7 +84,7 @@
* @param score_abs the normalized score
*/
void
-GAS_normalization_normalize_preference (void *client,
+GAS_normalization_normalize_preference (struct GNUNET_SERVER_Client *client,
const struct GNUNET_PeerIdentity *peer,
enum GNUNET_ATS_PreferenceKind kind,
float score_abs);
@@ -96,7 +96,7 @@
* @param client the disconnecting client
*/
void
-GAS_normalization_preference_client_disconnect (void *client);
+GAS_normalization_preference_client_disconnect (struct GNUNET_SERVER_Client
*client);
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35111 - gnunet/src/ats,
gnunet <=