From: Christian Grothoff Date: Sat, 18 Sep 2010 04:34:56 +0000 (+0000) Subject: nicer error msgs X-Git-Tag: initial-import-from-subversion-38251~20308 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=29fa331cfde73bde39cb365f05a64fbe8583c41c;p=oweals%2Fgnunet.git nicer error msgs --- 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) {