aboutsummaryrefslogtreecommitdiff
path: root/src/ats-tests/perf_ats.c
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 /src/ats-tests/perf_ats.c
parent0eec6dcddb60bd17c5227d8da94cb06bf8b363f3 (diff)
downloadgnunet-8f7e1f1263fa124b27520b40a47766c4f7ca5e49.tar.gz
gnunet-8f7e1f1263fa124b27520b40a47766c4f7ca5e49.zip
removing ATS preference count
Diffstat (limited to 'src/ats-tests/perf_ats.c')
-rw-r--r--src/ats-tests/perf_ats.c6
1 files changed, 2 insertions, 4 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;