[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 01/02: fix sq compiler warning for uninit paramete
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 01/02: fix sq compiler warning for uninit parameter, query is not primary key due to override-with-latest replacement strategy |
Date: |
Fri, 30 Mar 2018 16:23:34 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
commit 7075d32a5bd56a95797b1113e4cf5638c14ca8fc
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Mar 30 16:07:10 2018 +0200
fix sq compiler warning for uninit parameter, query is not primary key due
to override-with-latest replacement strategy
---
src/include/gnunet_sq_lib.h | 2 +-
src/namecache/plugin_namecache_sqlite.c | 2 +-
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
*
* @return array last entry for the result specification to use
*/
-#define GNUNET_SQ_result_spec_end { NULL, NULL, NULL, NULL, 0, NULL }
+#define GNUNET_SQ_result_spec_end { NULL, NULL, NULL, NULL, 0, NULL, 0 }
/**
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)
(sqlite3_exec
(plugin->dbh,
"CREATE TABLE ns096blocks ("
- " query BLOB NOT NULL PRIMARY KEY,"
+ " query BLOB NOT NULL,"
" block BLOB NOT NULL,"
" expiration_time INT8 NOT NULL"
")",
--
To stop receiving notification emails like this one, please contact
address@hidden