[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12753 - gnunet/src/datacache
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12753 - gnunet/src/datacache |
Date: |
Fri, 27 Aug 2010 15:10:14 +0200 |
Author: grothoff
Date: 2010-08-27 15:10:14 +0200 (Fri, 27 Aug 2010)
New Revision: 12753
Modified:
gnunet/src/datacache/plugin_datacache_postgres.c
Log:
fix
Modified: gnunet/src/datacache/plugin_datacache_postgres.c
===================================================================
--- gnunet/src/datacache/plugin_datacache_postgres.c 2010-08-27 12:49:23 UTC
(rev 12752)
+++ gnunet/src/datacache/plugin_datacache_postgres.c 2010-08-27 13:10:14 UTC
(rev 12753)
@@ -267,10 +267,11 @@
*/
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 @@
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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12753 - gnunet/src/datacache,
gnunet <=