aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_preferences.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-05 19:57:26 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-05 19:57:26 +0000
commit25d991395e2ea75d77d5ae87dca27ba5cd94e940 (patch)
treeb9626ffde0b061c7a716b3d54e1eddbca7e05f36 /src/ats/gnunet-service-ats_preferences.c
parent52ae7e53f6b8dfd26612e4e9f0830918fd1ee312 (diff)
downloadgnunet-25d991395e2ea75d77d5ae87dca27ba5cd94e940.tar.gz
gnunet-25d991395e2ea75d77d5ae87dca27ba5cd94e940.zip
avoid void *, use proper type for client
Diffstat (limited to 'src/ats/gnunet-service-ats_preferences.c')
-rw-r--r--src/ats/gnunet-service-ats_preferences.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ats/gnunet-service-ats_preferences.c b/src/ats/gnunet-service-ats_preferences.c
index f0b50b0eb..ef7d94938 100644
--- a/src/ats/gnunet-service-ats_preferences.c
+++ b/src/ats/gnunet-service-ats_preferences.c
@@ -207,7 +207,7 @@ static struct GNUNET_SCHEDULER_Task * aging_task;
207 207
208 208
209static struct GAS_Addresses_Preference_Clients * 209static struct GAS_Addresses_Preference_Clients *
210find_preference_client (void *client) 210find_preference_client (struct GNUNET_SERVER_Client *client)
211{ 211{
212 struct GAS_Addresses_Preference_Clients *cur; 212 struct GAS_Addresses_Preference_Clients *cur;
213 213
@@ -516,7 +516,7 @@ GAS_preference_client_disconnect (struct GNUNET_SERVER_Client *client)
516 * @param score_abs the new preference score 516 * @param score_abs the new preference score
517 */ 517 */
518static void 518static void
519preference_change (void *client, 519preference_change (struct GNUNET_SERVER_Client *client,
520 const struct GNUNET_PeerIdentity *peer, 520 const struct GNUNET_PeerIdentity *peer,
521 enum GNUNET_ATS_PreferenceKind kind, 521 enum GNUNET_ATS_PreferenceKind kind,
522 float score_abs) 522 float score_abs)
@@ -715,7 +715,7 @@ GAS_preference_done ()
715 * @param score_abs the normalized score 715 * @param score_abs the normalized score
716 */ 716 */
717void 717void
718GAS_normalization_normalize_preference (void *client, 718GAS_normalization_normalize_preference (struct GNUNET_SERVER_Client *client,
719 const struct GNUNET_PeerIdentity *peer, 719 const struct GNUNET_PeerIdentity *peer,
720 enum GNUNET_ATS_PreferenceKind kind, 720 enum GNUNET_ATS_PreferenceKind kind,
721 float score_abs) 721 float score_abs)
@@ -846,7 +846,7 @@ GAS_normalization_get_preferences_by_peer (void *cls,
846 * @return the value 846 * @return the value
847 */ 847 */
848double 848double
849GAS_normalization_get_preferences_by_client (const void *client, 849GAS_normalization_get_preferences_by_client (const struct GNUNET_SERVER_Client *client,
850 const struct GNUNET_PeerIdentity *peer, 850 const struct GNUNET_PeerIdentity *peer,
851 enum GNUNET_ATS_PreferenceKind pref) 851 enum GNUNET_ATS_PreferenceKind pref)
852{ 852{
@@ -881,7 +881,7 @@ GAS_normalization_get_preferences_by_client (const void *client,
881 * @param client the client 881 * @param client the client
882 */ 882 */
883void 883void
884GAS_normalization_preference_client_disconnect (void *client) 884GAS_normalization_preference_client_disconnect (struct GNUNET_SERVER_Client *client)
885{ 885{
886 struct PreferenceClient *c_cur; 886 struct PreferenceClient *c_cur;
887 /* Find preference client */ 887 /* Find preference client */
@@ -897,4 +897,3 @@ GAS_normalization_preference_client_disconnect (void *client)
897 GNUNET_CONTAINER_DLL_remove(pc_head, pc_tail, c_cur); 897 GNUNET_CONTAINER_DLL_remove(pc_head, pc_tail, c_cur);
898 free_client (c_cur); 898 free_client (c_cur);
899} 899}
900