aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/generate-underlay-topology.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-16 19:29:57 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-16 19:29:57 +0000
commit992c568fc1f77289f8dc795632b03f3508c50989 (patch)
treeee2323ffba2cb9e4306dbb07fae0b548dfd405dd /src/testbed/generate-underlay-topology.c
parente1d1a9d0dad8ea9919c6008401063423772134c6 (diff)
downloadgnunet-992c568fc1f77289f8dc795632b03f3508c50989.tar.gz
gnunet-992c568fc1f77289f8dc795632b03f3508c50989.zip
-check return value
Diffstat (limited to 'src/testbed/generate-underlay-topology.c')
-rw-r--r--src/testbed/generate-underlay-topology.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testbed/generate-underlay-topology.c b/src/testbed/generate-underlay-topology.c
index e6541a354..1e7460c4e 100644
--- a/src/testbed/generate-underlay-topology.c
+++ b/src/testbed/generate-underlay-topology.c
@@ -21,7 +21,7 @@
21/** 21/**
22 * @file testbed/generate-underlay-topology.c 22 * @file testbed/generate-underlay-topology.c
23 * @brief Program to generate a database file containing given underlay topology 23 * @brief Program to generate a database file containing given underlay topology
24 * @author Sree Harsha Totakura <sreeharsha@totakura.in> 24 * @author Sree Harsha Totakura <sreeharsha@totakura.in>
25 */ 25 */
26 26
27#include "platform.h" 27#include "platform.h"
@@ -165,10 +165,10 @@ setup_db (const char *dbfile)
165 " ?1," 165 " ?1,"
166 " ?2," 166 " ?2,"
167 " ?3," 167 " ?3,"
168 " ?4," 168 " ?4,"
169 " ?5);"; 169 " ?5);";
170 int ret; 170 int ret;
171 171
172 ret = GNUNET_SYSERR; 172 ret = GNUNET_SYSERR;
173 if (SQLITE_OK != sqlite3_open (dbfile, &db)) 173 if (SQLITE_OK != sqlite3_open (dbfile, &db))
174 { 174 {
@@ -338,7 +338,7 @@ main (int argc, char *const argv[])
338 GNUNET_GETOPT_OPTION_END 338 GNUNET_GETOPT_OPTION_END
339 }; 339 };
340 int ret; 340 int ret;
341 341
342 exit_result = GNUNET_SYSERR; 342 exit_result = GNUNET_SYSERR;
343 ret = 343 ret =
344 GNUNET_PROGRAM_run (argc, argv, "gnunet-underlay-topology", 344 GNUNET_PROGRAM_run (argc, argv, "gnunet-underlay-topology",
@@ -364,7 +364,7 @@ main (int argc, char *const argv[])
364 if (NULL != stmt_insert) 364 if (NULL != stmt_insert)
365 sqlite3_finalize (stmt_insert); 365 sqlite3_finalize (stmt_insert);
366 if (NULL != db) 366 if (NULL != db)
367 sqlite3_close (db); 367 GNUNET_break (SQLITE_OK == sqlite3_close (db));
368 if ((GNUNET_OK != ret) || (GNUNET_OK != exit_result)) 368 if ((GNUNET_OK != ret) || (GNUNET_OK != exit_result))
369 return 1; 369 return 1;
370 return 0; 370 return 0;