gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r8083 - GNUnet/src/applications/sqstore_postgres


From: gnunet
Subject: [GNUnet-SVN] r8083 - GNUnet/src/applications/sqstore_postgres
Date: Sat, 3 Jan 2009 01:18:13 -0700 (MST)

Author: grothoff
Date: 2009-01-03 01:18:13 -0700 (Sat, 03 Jan 2009)
New Revision: 8083

Modified:
   GNUnet/src/applications/sqstore_postgres/postgres.c
Log:
fixes

Modified: GNUnet/src/applications/sqstore_postgres/postgres.c
===================================================================
--- GNUnet/src/applications/sqstore_postgres/postgres.c 2009-01-03 08:16:29 UTC 
(rev 8082)
+++ GNUnet/src/applications/sqstore_postgres/postgres.c 2009-01-03 08:18:13 UTC 
(rev 8083)
@@ -953,19 +953,20 @@
 static int
 update (unsigned long long uid, int delta, GNUNET_CronTime expire)
 {
+  unsigned int oid = (unsigned int) uid; /* only 32 bit for postgres */
   int n_delta = htonl(delta);
   GNUNET_CronTime n_expire = GNUNET_htonll(expire);
   PGresult * ret;
   const char * paramValues[] = { 
     (const char*) &n_delta,
     (const char*) &n_expire,
-    (const char*) &uid,
+    (const char*) &oid,
   };     
   int paramLengths[] = 
     {
       sizeof(n_delta),
       sizeof(n_expire),
-      sizeof(uid),
+      sizeof(oid),
     };
   const int paramFormats[] = {1,1,1};
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]