diff options
Diffstat (limited to 'src/datastore/plugin_datastore_postgres.c')
-rw-r--r-- | src/datastore/plugin_datastore_postgres.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c index 98109d4da..6a96ad5d3 100644 --- a/src/datastore/plugin_datastore_postgres.c +++ b/src/datastore/plugin_datastore_postgres.c | |||
@@ -257,7 +257,7 @@ postgres_plugin_estimate_size (void *cls) | |||
257 | /** | 257 | /** |
258 | * Store an item in the datastore. | 258 | * Store an item in the datastore. |
259 | * | 259 | * |
260 | * @param cls closure with the 'struct Plugin' | 260 | * @param cls closure with the 'struct Plugin' |
261 | * @param key key for the item | 261 | * @param key key for the item |
262 | * @param size number of bytes in data | 262 | * @param size number of bytes in data |
263 | * @param data content stored | 263 | * @param data content stored |
@@ -335,7 +335,7 @@ postgres_plugin_put (void *cls, const struct GNUNET_HashCode * key, uint32_t siz | |||
335 | */ | 335 | */ |
336 | static void | 336 | static void |
337 | process_result (struct Plugin *plugin, PluginDatumProcessor proc, | 337 | process_result (struct Plugin *plugin, PluginDatumProcessor proc, |
338 | void *proc_cls, PGresult * res, | 338 | void *proc_cls, PGresult * res, |
339 | const char *filename, int line) | 339 | const char *filename, int line) |
340 | { | 340 | { |
341 | int iret; | 341 | int iret; |
@@ -802,7 +802,7 @@ postgres_plugin_get_keys (void *cls, | |||
802 | if (sizeof (struct GNUNET_HashCode) != PQgetlength (res, i, 0)) | 802 | if (sizeof (struct GNUNET_HashCode) != PQgetlength (res, i, 0)) |
803 | { | 803 | { |
804 | memcpy (&key, PQgetvalue (res, i, 0), sizeof (struct GNUNET_HashCode)); | 804 | memcpy (&key, PQgetvalue (res, i, 0), sizeof (struct GNUNET_HashCode)); |
805 | proc (proc_cls, &key, 1); | 805 | proc (proc_cls, &key, 1); |
806 | } | 806 | } |
807 | } | 807 | } |
808 | PQclear (res); | 808 | PQclear (res); |
@@ -819,7 +819,7 @@ static void | |||
819 | postgres_plugin_drop (void *cls) | 819 | postgres_plugin_drop (void *cls) |
820 | { | 820 | { |
821 | struct Plugin *plugin = cls; | 821 | struct Plugin *plugin = cls; |
822 | 822 | ||
823 | if (GNUNET_OK != GNUNET_POSTGRES_exec (plugin->dbh, "DROP TABLE gn090")) | 823 | if (GNUNET_OK != GNUNET_POSTGRES_exec (plugin->dbh, "DROP TABLE gn090")) |
824 | GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, "postgres", _("Failed to drop table from database.\n")); | 824 | GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, "postgres", _("Failed to drop table from database.\n")); |
825 | } | 825 | } |