diff options
Diffstat (limited to 'src/ats')
-rw-r--r-- | src/ats/ats_api_performance.c | 8 | ||||
-rw-r--r-- | src/ats/plugin_ats_proportional.c | 2 |
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, | |||
1005 | static void | 1005 | static void |
1006 | GAS_proportional_address_add (void *solver, | 1006 | GAS_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; |