aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>2018-06-24 18:48:33 +0200
committerSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>2018-06-24 18:48:33 +0200
commit5de8b1d6e35e4c802cc25f7cbca7ba1154965b13 (patch)
treeb088538e45519c7f798f8af6972c01b0ae5ce897 /src/ats
parent1981ffec4ad18287efe8ab693390e1d498de05bf (diff)
downloadgnunet-5de8b1d6e35e4c802cc25f7cbca7ba1154965b13.tar.gz
gnunet-5de8b1d6e35e4c802cc25f7cbca7ba1154965b13.zip
fix https://gnunet.org/bugs/view.php?id=4904
Diffstat (limited to 'src/ats')
-rw-r--r--src/ats/ats_api_performance.c8
-rw-r--r--src/ats/plugin_ats_proportional.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/ats/ats_api_performance.c b/src/ats/ats_api_performance.c
index caa1da034..0c196ea43 100644
--- a/src/ats/ats_api_performance.c
+++ b/src/ats/ats_api_performance.c
@@ -849,7 +849,7 @@ GNUNET_ATS_performance_change_preference (struct GNUNET_ATS_PerformanceHandle *p
849 count = 0; 849 count = 0;
850 va_start(ap, peer); 850 va_start(ap, peer);
851 while (GNUNET_ATS_PREFERENCE_END != 851 while (GNUNET_ATS_PREFERENCE_END !=
852 (kind = va_arg (ap, enum GNUNET_ATS_PreferenceKind) )) 852 (kind = GNUNET_VA_ARG_ENUM (ap, GNUNET_ATS_PreferenceKind) ))
853 { 853 {
854 switch (kind) 854 switch (kind)
855 { 855 {
@@ -875,7 +875,7 @@ GNUNET_ATS_performance_change_preference (struct GNUNET_ATS_PerformanceHandle *p
875 count = 0; 875 count = 0;
876 va_start(ap, peer); 876 va_start(ap, peer);
877 while (GNUNET_ATS_PREFERENCE_END != (kind = 877 while (GNUNET_ATS_PREFERENCE_END != (kind =
878 va_arg (ap, enum GNUNET_ATS_PreferenceKind) )) 878 GNUNET_VA_ARG_ENUM (ap, GNUNET_ATS_PreferenceKind) ))
879 { 879 {
880 pi[count].preference_kind = htonl (kind); 880 pi[count].preference_kind = htonl (kind);
881 switch (kind) 881 switch (kind)
@@ -927,7 +927,7 @@ GNUNET_ATS_performance_give_feedback (struct GNUNET_ATS_PerformanceHandle *ph,
927 count = 0; 927 count = 0;
928 va_start(ap, scope); 928 va_start(ap, scope);
929 while (GNUNET_ATS_PREFERENCE_END != 929 while (GNUNET_ATS_PREFERENCE_END !=
930 (kind = va_arg (ap, enum GNUNET_ATS_PreferenceKind) )) 930 (kind = GNUNET_VA_ARG_ENUM (ap, GNUNET_ATS_PreferenceKind) ))
931 { 931 {
932 switch (kind) 932 switch (kind)
933 { 933 {
@@ -954,7 +954,7 @@ GNUNET_ATS_performance_give_feedback (struct GNUNET_ATS_PerformanceHandle *ph,
954 count = 0; 954 count = 0;
955 va_start(ap, scope); 955 va_start(ap, scope);
956 while (GNUNET_ATS_PREFERENCE_END != (kind = 956 while (GNUNET_ATS_PREFERENCE_END != (kind =
957 va_arg (ap, enum GNUNET_ATS_PreferenceKind) )) 957 GNUNET_VA_ARG_ENUM (ap, GNUNET_ATS_PreferenceKind) ))
958 { 958 {
959 pi[count].preference_kind = htonl (kind); 959 pi[count].preference_kind = htonl (kind);
960 switch (kind) 960 switch (kind)
diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c
index b4ca70dc7..08fb7a9a7 100644
--- a/src/ats/plugin_ats_proportional.c
+++ b/src/ats/plugin_ats_proportional.c
@@ -1005,7 +1005,7 @@ GAS_proportional_address_property_changed (void *solver,
1005static void 1005static void
1006GAS_proportional_address_add (void *solver, 1006GAS_proportional_address_add (void *solver,
1007 struct ATS_Address *address, 1007 struct ATS_Address *address,
1008 enum GNUNET_ATS_Network_Type network) 1008 uint32_t network)
1009{ 1009{
1010 struct GAS_PROPORTIONAL_Handle *s = solver; 1010 struct GAS_PROPORTIONAL_Handle *s = solver;
1011 struct Network *net; 1011 struct Network *net;