gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r3875 - GNUnet/src/applications/dstore


From: grothoff
Subject: [GNUnet-SVN] r3875 - GNUnet/src/applications/dstore
Date: Sun, 3 Dec 2006 18:02:08 -0800 (PST)

Author: grothoff
Date: 2006-12-03 18:02:06 -0800 (Sun, 03 Dec 2006)
New Revision: 3875

Modified:
   GNUnet/src/applications/dstore/dstore.c
   GNUnet/src/applications/dstore/dstore_test.c
Log:
fix

Modified: GNUnet/src/applications/dstore/dstore.c
===================================================================
--- GNUnet/src/applications/dstore/dstore.c     2006-12-04 01:50:30 UTC (rev 
3874)
+++ GNUnet/src/applications/dstore/dstore.c     2006-12-04 02:02:06 UTC (rev 
3875)
@@ -251,7 +251,7 @@
       continue;
     }
     expire = sqlite3_column_int64(stmt, 3);
-    if (expire < get_time())
+    if (expire < get_time()) 
       continue;
     dat = sqlite3_column_blob(stmt, 5);
     handler(key,

Modified: GNUnet/src/applications/dstore/dstore_test.c
===================================================================
--- GNUnet/src/applications/dstore/dstore_test.c        2006-12-04 01:50:30 UTC 
(rev 3874)
+++ GNUnet/src/applications/dstore/dstore_test.c        2006-12-04 02:02:06 UTC 
(rev 3875)
@@ -40,10 +40,14 @@
                    unsigned int size,
                    const char * data,
                    void * cls) {
-  if (size != sizeof(HashCode512))
+  if (size != sizeof(HashCode512)) {
+    printf("ERROR: Invalid size\n");
     error = 2;
-  if (0 != memcmp(data, cls, size))
+  }
+  if (0 != memcmp(data, cls, size)) {
+    printf("ERROR: Invalid data\n");
     error = 3;
+  }
 }
 
 /**
@@ -55,7 +59,7 @@
   cron_t exp;
   unsigned int i;  
 
-  exp = get_time() + 5 * cronSECONDS;
+  exp = get_time() + 5 * cronMINUTES;
   memset(&k,
         0,
         sizeof(HashCode512));
@@ -67,7 +71,7 @@
                          i % 2,
                          exp,
                          sizeof(HashCode512),
-                         (const char*) &k));
+                         (const char*) &n));
     k = n;
   }
   memset(&k,





reply via email to

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