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/ats-tests/perf_ats.c | |
parent | 0eec6dcddb60bd17c5227d8da94cb06bf8b363f3 (diff) |
removing ATS preference count
Diffstat (limited to 'src/ats-tests/perf_ats.c')
-rw-r--r-- | src/ats-tests/perf_ats.c | 6 |
1 files changed, 2 insertions, 4 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; |