check
[oweals/gnunet.git] / src / block / plugin_block_dht.c
index 56f99a7650128f898454df9761c20f0fce213aac..0e499b821cbcc57bac4ec3817f5ff4f711e684d6 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "platform.h"
 #include "gnunet_hello_lib.h"
-#include "plugin_block.h"
+#include "gnunet_block_plugin.h"
 
 #define DEBUG_DHT GNUNET_NO
 
@@ -104,7 +104,7 @@ block_plugin_dht_get_key (void *cls,
                       "block-dht",
                       _("Block not of type %u\n"),
                       GNUNET_BLOCK_TYPE_DHT_HELLO);
-      return GNUNET_SYSERR;
+      return GNUNET_NO;
     }
   msg = block;
   if (block_size != ntohs (msg->size))
@@ -113,7 +113,7 @@ block_plugin_dht_get_key (void *cls,
                       "block-dht",
                       _("Size mismatch for block\n"),
                       GNUNET_BLOCK_TYPE_DHT_HELLO);
-      return GNUNET_SYSERR;
+      return GNUNET_NO;
     }
   hello = block;
   pid = (struct GNUNET_PeerIdentity*) key;
@@ -125,7 +125,7 @@ block_plugin_dht_get_key (void *cls,
                       "block-dht",
                       _("Block of type %u is malformed\n"),
                       GNUNET_BLOCK_TYPE_DHT_HELLO);
-      return GNUNET_SYSERR;
+      return GNUNET_NO;
     }
   return GNUNET_OK;
 }