diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-05 19:57:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-05 19:57:26 +0000 |
commit | 25d991395e2ea75d77d5ae87dca27ba5cd94e940 (patch) | |
tree | b9626ffde0b061c7a716b3d54e1eddbca7e05f36 /src/ats/gnunet-service-ats_preferences.c | |
parent | 52ae7e53f6b8dfd26612e4e9f0830918fd1ee312 (diff) | |
download | gnunet-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.c | 11 |
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 | ||
209 | static struct GAS_Addresses_Preference_Clients * | 209 | static struct GAS_Addresses_Preference_Clients * |
210 | find_preference_client (void *client) | 210 | find_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 | */ |
518 | static void | 518 | static void |
519 | preference_change (void *client, | 519 | preference_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 | */ |
717 | void | 717 | void |
718 | GAS_normalization_normalize_preference (void *client, | 718 | GAS_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 | */ |
848 | double | 848 | double |
849 | GAS_normalization_get_preferences_by_client (const void *client, | 849 | GAS_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 | */ |
883 | void | 883 | void |
884 | GAS_normalization_preference_client_disconnect (void *client) | 884 | GAS_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 | |||