gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r5525 - in GNUnet/src/applications: dht/module dstore


From: gnunet
Subject: [GNUnet-SVN] r5525 - in GNUnet/src/applications: dht/module dstore
Date: Sun, 19 Aug 2007 15:18:06 -0600 (MDT)

Author: durner
Date: 2007-08-19 15:18:06 -0600 (Sun, 19 Aug 2007)
New Revision: 5525

Modified:
   GNUnet/src/applications/dht/module/service.c
   GNUnet/src/applications/dstore/dstore.c
Log:
add warnings

Modified: GNUnet/src/applications/dht/module/service.c
===================================================================
--- GNUnet/src/applications/dht/module/service.c        2007-08-19 18:41:17 UTC 
(rev 5524)
+++ GNUnet/src/applications/dht/module/service.c        2007-08-19 21:18:06 UTC 
(rev 5525)
@@ -29,6 +29,7 @@
 #include "table.h"
 #include "routing.h"
 #include "gnunet_dht_service.h"
+#include "gnunet_util.h"
 
 /**
  * Global core API.
@@ -166,14 +167,19 @@
   cron = cron_create (capi->ectx);
   cron_start (cron);
   if (OK != init_dht_store (1024 * 1024, capi))
-    return NULL;
+    {
+      GE_BREAK(capi->ectx, 0);
+      return NULL;
+    }
   if (OK != init_dht_table (capi))
     {
+      GE_BREAK(capi->ectx, 0);
       done_dht_store ();
       return NULL;
     }
   if (OK != init_dht_routing (capi))
     {
+      GE_BREAK(capi->ectx, 0);
       done_dht_table ();
       done_dht_store ();
       return NULL;

Modified: GNUnet/src/applications/dstore/dstore.c
===================================================================
--- GNUnet/src/applications/dstore/dstore.c     2007-08-19 18:41:17 UTC (rev 
5524)
+++ GNUnet/src/applications/dstore/dstore.c     2007-08-19 21:18:06 UTC (rev 
5525)
@@ -440,7 +440,10 @@
           "SQLite Dstore: initializing database\n");
 #endif
   if (OK != db_reset ())
-    return NULL;
+    {
+      GE_BREAK(capi->ectx, 0);
+      return NULL;
+    }
   lock = MUTEX_CREATE (NO);
 
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]