From 29fa331cfde73bde39cb365f05a64fbe8583c41c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 18 Sep 2010 04:34:56 +0000 Subject: [PATCH] nicer error msgs --- src/datastore/plugin_datastore_sqlite.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index 076d468ee..0a18b9b2f 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c @@ -179,13 +179,13 @@ create_indices (sqlite3 * dbh) -#if 1 +#if 0 #define CHECK(a) GNUNET_break(a) #define ENULL NULL #else #define ENULL &e #define ENULL_DEFINED 1 -#define CHECK(a) if (! a) { GNUNET_log(GNUNET_ERROR_TYPE_ERRROR, "%s\n", e); sqlite3_free(e); } +#define CHECK(a) if (! a) { GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "%s\n", e); sqlite3_free(e); } #endif @@ -1498,6 +1498,9 @@ sqlite_plugin_get_size (void *cls) sqlite3_stmt *stmt; uint64_t pages; uint64_t page_size; +#if ENULL_DEFINED + char *e; +#endif if (SQLITE_VERSION_NUMBER < 3006000) { -- 2.25.1