From 8f7e1f1263fa124b27520b40a47766c4f7ca5e49 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 20 Apr 2015 20:10:57 +0000 Subject: removing ATS preference count --- src/ats-tests/perf_ats.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/ats-tests/perf_ats.c') 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; -- cgit v1.2.3-18-g5258