diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-09-18 04:34:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-09-18 04:34:56 +0000 |
commit | 29fa331cfde73bde39cb365f05a64fbe8583c41c (patch) | |
tree | 2b6e294581ea223694df086a284a1806e3d631c7 /src | |
parent | 3165317a075658eb54bf466149ef963cf453397b (diff) | |
download | gnunet-29fa331cfde73bde39cb365f05a64fbe8583c41c.tar.gz gnunet-29fa331cfde73bde39cb365f05a64fbe8583c41c.zip |
nicer error msgs
Diffstat (limited to 'src')
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 7 |
1 files 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) | |||
179 | 179 | ||
180 | 180 | ||
181 | 181 | ||
182 | #if 1 | 182 | #if 0 |
183 | #define CHECK(a) GNUNET_break(a) | 183 | #define CHECK(a) GNUNET_break(a) |
184 | #define ENULL NULL | 184 | #define ENULL NULL |
185 | #else | 185 | #else |
186 | #define ENULL &e | 186 | #define ENULL &e |
187 | #define ENULL_DEFINED 1 | 187 | #define ENULL_DEFINED 1 |
188 | #define CHECK(a) if (! a) { GNUNET_log(GNUNET_ERROR_TYPE_ERRROR, "%s\n", e); sqlite3_free(e); } | 188 | #define CHECK(a) if (! a) { GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "%s\n", e); sqlite3_free(e); } |
189 | #endif | 189 | #endif |
190 | 190 | ||
191 | 191 | ||
@@ -1498,6 +1498,9 @@ sqlite_plugin_get_size (void *cls) | |||
1498 | sqlite3_stmt *stmt; | 1498 | sqlite3_stmt *stmt; |
1499 | uint64_t pages; | 1499 | uint64_t pages; |
1500 | uint64_t page_size; | 1500 | uint64_t page_size; |
1501 | #if ENULL_DEFINED | ||
1502 | char *e; | ||
1503 | #endif | ||
1501 | 1504 | ||
1502 | if (SQLITE_VERSION_NUMBER < 3006000) | 1505 | if (SQLITE_VERSION_NUMBER < 3006000) |
1503 | { | 1506 | { |