diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2015-04-20 20:10:57 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2015-04-20 20:10:57 +0000 |
commit | 8f7e1f1263fa124b27520b40a47766c4f7ca5e49 (patch) | |
tree | a8540b5dd8dd273b6e38a53f05e906fdcfa3d847 /src | |
parent | 0eec6dcddb60bd17c5227d8da94cb06bf8b363f3 (diff) | |
download | gnunet-8f7e1f1263fa124b27520b40a47766c4f7ca5e49.tar.gz gnunet-8f7e1f1263fa124b27520b40a47766c4f7ca5e49.zip |
removing ATS preference count
Diffstat (limited to 'src')
-rw-r--r-- | src/ats-tests/perf_ats.c | 6 | ||||
-rw-r--r-- | src/include/gnunet_ats_service.h | 5 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/ats-tests/perf_ats.c b/src/ats-tests/perf_ats.c index 7a9c24f83..c769c0762 100644 --- a/src/ats-tests/perf_ats.c +++ b/src/ats-tests/perf_ats.c | |||
@@ -364,7 +364,7 @@ main (int argc, char *argv[]) | |||
364 | char *conf_name; | 364 | char *conf_name; |
365 | char *comm_name; | 365 | char *comm_name; |
366 | char *dotexe; | 366 | char *dotexe; |
367 | char *prefs[GNUNET_ATS_PreferenceCount] = GNUNET_ATS_PreferenceTypeString; | 367 | char *prefs[] = GNUNET_ATS_PreferenceTypeString; |
368 | int c; | 368 | int c; |
369 | 369 | ||
370 | result = 0; | 370 | result = 0; |
@@ -432,10 +432,8 @@ main (int argc, char *argv[]) | |||
432 | 432 | ||
433 | if (0 != strcmp (pref_str, "NONE")) | 433 | if (0 != strcmp (pref_str, "NONE")) |
434 | { | 434 | { |
435 | for (c = 0; c < GNUNET_ATS_PreferenceCount; c++) | 435 | for (c = 0; c < GNUNET_ATS_PREFERENCE_END; c++) |
436 | { | 436 | { |
437 | if (c == GNUNET_ATS_PREFERENCE_END) | ||
438 | continue; | ||
439 | if (0 == strcmp (pref_str, prefs[c])) | 437 | if (0 == strcmp (pref_str, prefs[c])) |
440 | { | 438 | { |
441 | pref_val = c; | 439 | pref_val = c; |
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index c036a536b..c030d7dc3 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); | |||
605 | 605 | ||
606 | 606 | ||
607 | /** | 607 | /** |
608 | * Number of preference types supported by ATS | ||
609 | */ | ||
610 | #define GNUNET_ATS_PreferenceCount 3 | ||
611 | |||
612 | /** | ||
613 | * ATS preference types as array initializer | 608 | * ATS preference types as array initializer |
614 | */ | 609 | */ |
615 | #define GNUNET_ATS_PreferenceType {GNUNET_ATS_PREFERENCE_BANDWIDTH, GNUNET_ATS_PREFERENCE_LATENCY, GNUNET_ATS_PREFERENCE_END} | 610 | #define GNUNET_ATS_PreferenceType {GNUNET_ATS_PREFERENCE_BANDWIDTH, GNUNET_ATS_PREFERENCE_LATENCY, GNUNET_ATS_PREFERENCE_END} |