diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-08-27 13:10:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-08-27 13:10:14 +0000 |
commit | 4c26b95ce21d754f0270fdb9ed6d26c24c852568 (patch) | |
tree | 6cd06e16071ed8ab3ff927864e2383cd7250b242 /src/datacache | |
parent | 4a0fde5717d9569f602d30541d48a4484acb3baa (diff) |
fix
Diffstat (limited to 'src/datacache')
-rw-r--r-- | src/datacache/plugin_datacache_postgres.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/datacache/plugin_datacache_postgres.c b/src/datacache/plugin_datacache_postgres.c index e1cf334ef9..50d464a70c 100644 --- a/src/datacache/plugin_datacache_postgres.c +++ b/src/datacache/plugin_datacache_postgres.c @@ -267,10 +267,11 @@ init_connection (struct Plugin *plugin) */ static int delete_by_rowid (struct Plugin *plugin, - unsigned int rowid) + uint32_t rowid) { - const char *paramValues[] = { (const char *) &rowid }; - int paramLengths[] = { sizeof (rowid) }; + uint32_t brow = htonl (rowid); + const char *paramValues[] = { (const char *) &brow }; + int paramLengths[] = { sizeof (brow) }; const int paramFormats[] = { 1 }; PGresult *ret; @@ -566,8 +567,6 @@ libgnunet_plugin_datacache_postgres_done (void *cls) struct GNUNET_DATACACHE_PluginFunctions *api = cls; struct Plugin *plugin = api->cls; - fprintf (stderr, - "Unloading postgres plugin\n"); PQfinish (plugin->dbh); GNUNET_free (plugin); GNUNET_free (api); |