adding DEBUG logic for #3863
[oweals/gnunet.git] / src / ats-tests / perf_ats.c
index 7a9c24f83cf4dada0c78ffc833ee543f0276a0de..e0affb4f91a059c589c0bf7213a815e3645f1359 100644 (file)
@@ -14,8 +14,8 @@
 
  You should have received a copy of the GNU General Public License
  along with GNUnet; see the file COPYING.  If not, write to the
- Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
+ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
  */
 /**
  * @file ats/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;