[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34645 - gnunet/src/testbed
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34645 - gnunet/src/testbed |
Date: |
Tue, 16 Dec 2014 20:22:02 +0100 |
Author: grothoff
Date: 2014-12-16 20:22:01 +0100 (Tue, 16 Dec 2014)
New Revision: 34645
Modified:
gnunet/src/testbed/gnunet-daemon-testbed-underlay.c
Log:
-check return values
Modified: gnunet/src/testbed/gnunet-daemon-testbed-underlay.c
===================================================================
--- gnunet/src/testbed/gnunet-daemon-testbed-underlay.c 2014-12-16 19:20:34 UTC
(rev 34644)
+++ gnunet/src/testbed/gnunet-daemon-testbed-underlay.c 2014-12-16 19:22:01 UTC
(rev 34645)
@@ -192,12 +192,12 @@
* Next ptr
*/
struct WhiteListRow *next;
-
+
/**
* The offset where to find the hostkey for the peer
*/
unsigned int id;
-
+
/**
* Latency to be assigned to the link
*/
@@ -319,7 +319,7 @@
struct WhiteListRow *lr;
int nrows;
int ret;
-
+
if (SQLITE_OK != (ret = sqlite3_prepare_v2 (db, query_wl, -1, &stmt_wl,
NULL)))
{
LOG_SQLITE (db, NULL, GNUNET_ERROR_TYPE_ERROR, "sqlite3_prepare_v2");
@@ -388,7 +388,7 @@
if (NULL != db)
{
LOG_SQLITE (db, NULL, GNUNET_ERROR_TYPE_ERROR, "sqlite_open_v2");
- sqlite3_close (db);
+ GNUNET_break (SQLITE_OK == sqlite3_close (db));
}
else
LOG (GNUNET_ERROR_TYPE_ERROR, "Cannot open sqlite file %s\n", dbfile);
@@ -401,7 +401,7 @@
wl_head = NULL;
if (GNUNET_OK != load_keys (c))
goto close_db;
-
+
transport = GNUNET_TRANSPORT_connect (c, NULL, NULL, NULL, NULL, NULL);
if (NULL == transport)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34645 - gnunet/src/testbed,
gnunet <=