aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2015-04-20 20:10:57 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2015-04-20 20:10:57 +0000
commit8f7e1f1263fa124b27520b40a47766c4f7ca5e49 (patch)
treea8540b5dd8dd273b6e38a53f05e906fdcfa3d847
parent0eec6dcddb60bd17c5227d8da94cb06bf8b363f3 (diff)
removing ATS preference count
-rw-r--r--src/ats-tests/perf_ats.c6
-rw-r--r--src/include/gnunet_ats_service.h5
2 files changed, 2 insertions, 9 deletions
diff --git a/src/ats-tests/perf_ats.c b/src/ats-tests/perf_ats.c
index 7a9c24f83c..c769c0762d 100644
--- a/src/ats-tests/perf_ats.c
+++ b/src/ats-tests/perf_ats.c
@@ -364,7 +364,7 @@ main (int argc, char *argv[])
char *conf_name;
char *comm_name;
char *dotexe;
- char *prefs[GNUNET_ATS_PreferenceCount] = GNUNET_ATS_PreferenceTypeString;
+ char *prefs[] = GNUNET_ATS_PreferenceTypeString;
int c;
result = 0;
@@ -432,10 +432,8 @@ main (int argc, char *argv[])
if (0 != strcmp (pref_str, "NONE"))
{
- for (c = 0; c < GNUNET_ATS_PreferenceCount; c++)
+ for (c = 0; c < GNUNET_ATS_PREFERENCE_END; c++)
{
- if (c == GNUNET_ATS_PREFERENCE_END)
- continue;
if (0 == strcmp (pref_str, prefs[c]))
{
pref_val = c;
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h
index c036a536b2..c030d7dc3a 100644
--- a/src/include/gnunet_ats_service.h
+++ b/src/include/gnunet_ats_service.h
@@ -605,11 +605,6 @@ GNUNET_ATS_reserve_bandwidth_cancel (struct GNUNET_ATS_ReservationContext *rc);
/**
- * Number of preference types supported by ATS
- */
-#define GNUNET_ATS_PreferenceCount 3
-
-/**
* ATS preference types as array initializer
*/
#define GNUNET_ATS_PreferenceType {GNUNET_ATS_PREFERENCE_BANDWIDTH, GNUNET_ATS_PREFERENCE_LATENCY, GNUNET_ATS_PREFERENCE_END}