diff options
Diffstat (limited to 'src/datacache/plugin_datacache_sqlite.c')
-rw-r--r-- | src/datacache/plugin_datacache_sqlite.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c index 34aa61363..1901bdedd 100644 --- a/src/datacache/plugin_datacache_sqlite.c +++ b/src/datacache/plugin_datacache_sqlite.c | |||
@@ -96,13 +96,13 @@ sq_prepare (sqlite3 * dbh, const char *zSql, /* SQL statement, UTF-8 encoded | |||
96 | * @param type type of the value | 96 | * @param type type of the value |
97 | * @param discard_time when to discard the value in any case | 97 | * @param discard_time when to discard the value in any case |
98 | * @param path_info_len number of entries in 'path_info' | 98 | * @param path_info_len number of entries in 'path_info' |
99 | * @param path_info array of peers that have processed the request | 99 | * @param path_info array of peers that have processed the request |
100 | * @return 0 if duplicate, -1 on error, number of bytes used otherwise | 100 | * @return 0 if duplicate, -1 on error, number of bytes used otherwise |
101 | */ | 101 | */ |
102 | static ssize_t | 102 | static ssize_t |
103 | sqlite_plugin_put (void *cls, | 103 | sqlite_plugin_put (void *cls, |
104 | const struct GNUNET_HashCode *key, | 104 | const struct GNUNET_HashCode *key, |
105 | size_t size, const char *data, | 105 | size_t size, const char *data, |
106 | enum GNUNET_BLOCK_Type type, | 106 | enum GNUNET_BLOCK_Type type, |
107 | struct GNUNET_TIME_Absolute discard_time, | 107 | struct GNUNET_TIME_Absolute discard_time, |
108 | unsigned int path_info_len, | 108 | unsigned int path_info_len, |
@@ -135,11 +135,11 @@ sqlite_plugin_put (void *cls, | |||
135 | key, sizeof (struct GNUNET_HashCode), | 135 | key, sizeof (struct GNUNET_HashCode), |
136 | SQLITE_TRANSIENT)) || | 136 | SQLITE_TRANSIENT)) || |
137 | (SQLITE_OK != sqlite3_bind_blob (stmt, 4, | 137 | (SQLITE_OK != sqlite3_bind_blob (stmt, 4, |
138 | data, size, | 138 | data, size, |
139 | SQLITE_TRANSIENT)) || | 139 | SQLITE_TRANSIENT)) || |
140 | (SQLITE_OK != sqlite3_bind_blob (stmt, 5, | 140 | (SQLITE_OK != sqlite3_bind_blob (stmt, 5, |
141 | path_info, | 141 | path_info, |
142 | path_info_len * sizeof (struct GNUNET_PeerIdentity), | 142 | path_info_len * sizeof (struct GNUNET_PeerIdentity), |
143 | SQLITE_TRANSIENT))) | 143 | SQLITE_TRANSIENT))) |
144 | { | 144 | { |
145 | LOG_SQLITE (plugin->dbh, GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, | 145 | LOG_SQLITE (plugin->dbh, GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, |