- remove adjust
[oweals/gnunet.git] / src / experimentation / gnunet-daemon-experimentation_capabilities.c
index a59f59969c6fc6862f519a7cab90b7603243bbaa..7d74c2827432976748bdc35aeeb7de6be41e77be 100644 (file)
@@ -25,7 +25,6 @@
  * @author Matthias Wachs
  */
 #include "platform.h"
-#include "gnunet_getopt_lib.h"
 #include "gnunet_util_lib.h"
 #include "gnunet_core_service.h"
 #include "gnunet_statistics_service.h"
@@ -41,7 +40,7 @@ uint32_t GSE_node_capabilities;
 /**
  * Capabilities defined at the moment
  */
-#define GNUNET_EXPERIMENTATION_capabilities_count 11;
+#define GNUNET_EXPERIMENTATION_capabilities_count 11
 
 
 /**
@@ -72,7 +71,7 @@ GED_capability_to_str (uint32_t cap)
        if (test != cap)
                return "UNDEFINED";
 
-       if (index <= 11)
+       if (index < GNUNET_EXPERIMENTATION_capabilities_count)
                return capstr[index];
        else
         return "UNDEFINED";