From: Christian Grothoff Date: Fri, 27 Aug 2010 13:10:14 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~20523 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4c26b95ce21d754f0270fdb9ed6d26c24c852568;p=oweals%2Fgnunet.git fix --- 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);