From 4c26b95ce21d754f0270fdb9ed6d26c24c852568 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 27 Aug 2010 13:10:14 +0000 Subject: [PATCH] fix --- src/datacache/plugin_datacache_postgres.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/datacache/plugin_datacache_postgres.c b/src/datacache/plugin_datacache_postgres.c index e1cf334ef..50d464a70 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); -- 2.25.1