aboutsummaryrefslogtreecommitdiff
path: root/src/testbed
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-16 19:22:01 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-16 19:22:01 +0000
commitdacfa714fa0a39482a86ff6f1791bb1b09fc35b4 (patch)
treedac1061d6c6f574e2af641b419d92f17911c0e74 /src/testbed
parent8bb308c9a42cf24a67e18c63c749c2696dc8ec3b (diff)
downloadgnunet-dacfa714fa0a39482a86ff6f1791bb1b09fc35b4.tar.gz
gnunet-dacfa714fa0a39482a86ff6f1791bb1b09fc35b4.zip
-check return values
Diffstat (limited to 'src/testbed')
-rw-r--r--src/testbed/gnunet-daemon-testbed-underlay.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testbed/gnunet-daemon-testbed-underlay.c b/src/testbed/gnunet-daemon-testbed-underlay.c
index 9716b36c6..59c9331e1 100644
--- a/src/testbed/gnunet-daemon-testbed-underlay.c
+++ b/src/testbed/gnunet-daemon-testbed-underlay.c
@@ -192,12 +192,12 @@ struct WhiteListRow
192 * Next ptr 192 * Next ptr
193 */ 193 */
194 struct WhiteListRow *next; 194 struct WhiteListRow *next;
195 195
196 /** 196 /**
197 * The offset where to find the hostkey for the peer 197 * The offset where to find the hostkey for the peer
198 */ 198 */
199 unsigned int id; 199 unsigned int id;
200 200
201 /** 201 /**
202 * Latency to be assigned to the link 202 * Latency to be assigned to the link
203 */ 203 */
@@ -319,7 +319,7 @@ db_read_whitelist (struct sqlite3 *db, int pid, struct WhiteListRow **wl_rows)
319 struct WhiteListRow *lr; 319 struct WhiteListRow *lr;
320 int nrows; 320 int nrows;
321 int ret; 321 int ret;
322 322
323 if (SQLITE_OK != (ret = sqlite3_prepare_v2 (db, query_wl, -1, &stmt_wl, NULL))) 323 if (SQLITE_OK != (ret = sqlite3_prepare_v2 (db, query_wl, -1, &stmt_wl, NULL)))
324 { 324 {
325 LOG_SQLITE (db, NULL, GNUNET_ERROR_TYPE_ERROR, "sqlite3_prepare_v2"); 325 LOG_SQLITE (db, NULL, GNUNET_ERROR_TYPE_ERROR, "sqlite3_prepare_v2");
@@ -388,7 +388,7 @@ run (void *cls, char *const *args, const char *cfgfile,
388 if (NULL != db) 388 if (NULL != db)
389 { 389 {
390 LOG_SQLITE (db, NULL, GNUNET_ERROR_TYPE_ERROR, "sqlite_open_v2"); 390 LOG_SQLITE (db, NULL, GNUNET_ERROR_TYPE_ERROR, "sqlite_open_v2");
391 sqlite3_close (db); 391 GNUNET_break (SQLITE_OK == sqlite3_close (db));
392 } 392 }
393 else 393 else
394 LOG (GNUNET_ERROR_TYPE_ERROR, "Cannot open sqlite file %s\n", dbfile); 394 LOG (GNUNET_ERROR_TYPE_ERROR, "Cannot open sqlite file %s\n", dbfile);
@@ -401,7 +401,7 @@ run (void *cls, char *const *args, const char *cfgfile,
401 wl_head = NULL; 401 wl_head = NULL;
402 if (GNUNET_OK != load_keys (c)) 402 if (GNUNET_OK != load_keys (c))
403 goto close_db; 403 goto close_db;
404 404
405 transport = GNUNET_TRANSPORT_connect (c, NULL, NULL, NULL, NULL, NULL); 405 transport = GNUNET_TRANSPORT_connect (c, NULL, NULL, NULL, NULL, NULL);
406 if (NULL == transport) 406 if (NULL == transport)
407 { 407 {