aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/plugin_peerstore_sqlite.c
diff options
context:
space:
mode:
authorOmar Tarabai <tarabai@devegypt.com>2014-05-12 15:55:41 +0000
committerOmar Tarabai <tarabai@devegypt.com>2014-05-12 15:55:41 +0000
commit6f1bbf8034e41837c33c5e3a7270c603a02e9d2e (patch)
tree5f3bf2aa83959c110376303298da5f49ba1134cf /src/peerstore/plugin_peerstore_sqlite.c
parenta9670db6f78bdc4be16dc856a02fe42f4e039f93 (diff)
downloadgnunet-6f1bbf8034e41837c33c5e3a7270c603a02e9d2e.tar.gz
gnunet-6f1bbf8034e41837c33c5e3a7270c603a02e9d2e.zip
PEERSTORE store function
Diffstat (limited to 'src/peerstore/plugin_peerstore_sqlite.c')
-rw-r--r--src/peerstore/plugin_peerstore_sqlite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peerstore/plugin_peerstore_sqlite.c b/src/peerstore/plugin_peerstore_sqlite.c
index 1695938bb..e967e2177 100644
--- a/src/peerstore/plugin_peerstore_sqlite.c
+++ b/src/peerstore/plugin_peerstore_sqlite.c
@@ -104,7 +104,7 @@ peerstore_sqlite_store_record (void *cls,
104 //FIXME: check if value exists with the same key first 104 //FIXME: check if value exists with the same key first
105 105
106 if(SQLITE_OK != sqlite3_bind_blob(stmt, 2, peer, sizeof(struct GNUNET_PeerIdentity), SQLITE_STATIC) 106 if(SQLITE_OK != sqlite3_bind_blob(stmt, 2, peer, sizeof(struct GNUNET_PeerIdentity), SQLITE_STATIC)
107 || SQLITE_OK != sqlite3_bind_text(stmt, 1, sub_system, sizeof(sub_system), SQLITE_STATIC) 107 || SQLITE_OK != sqlite3_bind_text(stmt, 1, sub_system, strlen(sub_system) + 1, SQLITE_STATIC)
108 || SQLITE_OK != sqlite3_bind_blob(stmt, 3, value, size, SQLITE_STATIC)) 108 || SQLITE_OK != sqlite3_bind_blob(stmt, 3, value, size, SQLITE_STATIC))
109 LOG_SQLITE (plugin, GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, 109 LOG_SQLITE (plugin, GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK,
110 "sqlite3_bind"); 110 "sqlite3_bind");