aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-03-30 16:07:10 +0200
committerChristian Grothoff <christian@grothoff.org>2018-03-30 16:07:10 +0200
commit7075d32a5bd56a95797b1113e4cf5638c14ca8fc (patch)
treec75ffcf8be63aee7868694ddd9586bdf48d4e99a /src
parenta01ee0d0c230347a5257aa8250b8d0bbb3414261 (diff)
downloadgnunet-7075d32a5bd56a95797b1113e4cf5638c14ca8fc.tar.gz
gnunet-7075d32a5bd56a95797b1113e4cf5638c14ca8fc.zip
fix sq compiler warning for uninit parameter, query is not primary key due to override-with-latest replacement strategy
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_sq_lib.h2
-rw-r--r--src/namecache/plugin_namecache_sqlite.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/include/gnunet_sq_lib.h b/src/include/gnunet_sq_lib.h
index c196d7767..f3adbc4c2 100644
--- a/src/include/gnunet_sq_lib.h
+++ b/src/include/gnunet_sq_lib.h
@@ -294,7 +294,7 @@ struct GNUNET_SQ_ResultSpec
294 * 294 *
295 * @return array last entry for the result specification to use 295 * @return array last entry for the result specification to use
296 */ 296 */
297#define GNUNET_SQ_result_spec_end { NULL, NULL, NULL, NULL, 0, NULL } 297#define GNUNET_SQ_result_spec_end { NULL, NULL, NULL, NULL, 0, NULL, 0 }
298 298
299 299
300/** 300/**
diff --git a/src/namecache/plugin_namecache_sqlite.c b/src/namecache/plugin_namecache_sqlite.c
index 669729f37..37d6d3b62 100644
--- a/src/namecache/plugin_namecache_sqlite.c
+++ b/src/namecache/plugin_namecache_sqlite.c
@@ -241,7 +241,7 @@ database_setup (struct Plugin *plugin)
241 (sqlite3_exec 241 (sqlite3_exec
242 (plugin->dbh, 242 (plugin->dbh,
243 "CREATE TABLE ns096blocks (" 243 "CREATE TABLE ns096blocks ("
244 " query BLOB NOT NULL PRIMARY KEY," 244 " query BLOB NOT NULL,"
245 " block BLOB NOT NULL," 245 " block BLOB NOT NULL,"
246 " expiration_time INT8 NOT NULL" 246 " expiration_time INT8 NOT NULL"
247 ")", 247 ")",