Use more-or-equal (some machines are fast enough)
[oweals/gnunet.git] / src / testbed / gnunet-daemon-testbed-blacklist.c
index d149443626df74e309a236e82729db21dcb4c3bb..95cdda8bda41f81a8da54cc33406d17adfe83381 100644 (file)
@@ -22,8 +22,8 @@
 /**
  * @file testbed/gnunet-daemon-testbed-blacklist.c
  * @brief daemon to restrict incoming connections from other peers at the
- *          transport layer of a peer 
- * @author Sree Harsha Totakura <sreeharsha@totakura.in> 
+ *          transport layer of a peer
+ * @author Sree Harsha Totakura <sreeharsha@totakura.in>
  */
 
 #include "platform.h"
@@ -143,7 +143,7 @@ static int
 check_access (void *cls, const struct GNUNET_PeerIdentity * pid)
 {
   int contains;
+
   if (NULL != map)
     contains = GNUNET_CONTAINER_multipeermap_contains (map, pid);
   else
@@ -167,7 +167,7 @@ setup_ac (const char *fname, const struct GNUNET_CONFIGURATION_Handle *cfg)
   uint64_t fsize;
   unsigned int npeers;
   unsigned int cnt;
-  
+
   GNUNET_assert (GNUNET_OK != GNUNET_DISK_file_size (fname, &fsize, GNUNET_NO,
                                                      GNUNET_YES));
   if (0 != (fsize % sizeof (struct GNUNET_PeerIdentity)))
@@ -214,9 +214,9 @@ run (void *cls, char *const *args, const char *cfgfile,
   char *shome;
   char fname[PATH_MAX];
 
-  if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (c, "PATHS",
-                                                          "SERVICEHOME",
-                                                          &shome))
+  if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (c, "PATHS",
+                                                            "GNUNET_HOME",
+                                                            &shome))
   {
     GNUNET_break (0);
     return;