gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r6226 - GNUnet/src/applications/fs/ecrs


From: gnunet
Subject: [GNUnet-SVN] r6226 - GNUnet/src/applications/fs/ecrs
Date: Sun, 10 Feb 2008 00:16:39 -0700 (MST)

Author: grothoff
Date: 2008-02-10 00:16:38 -0700 (Sun, 10 Feb 2008)
New Revision: 6226

Modified:
   GNUnet/src/applications/fs/ecrs/ecrstest.c
Log:
fx

Modified: GNUnet/src/applications/fs/ecrs/ecrstest.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/ecrstest.c  2008-02-10 07:14:23 UTC (rev 
6225)
+++ GNUnet/src/applications/fs/ecrs/ecrstest.c  2008-02-10 07:16:38 UTC (rev 
6226)
@@ -39,6 +39,15 @@
   return GNUNET_OK;
 }
 
+static int
+testTerminateNC (void * ptr)
+{
+  void ** p = ptr;
+  if (NULL == (*p))
+    return GNUNET_OK;
+  return GNUNET_SYSERR;
+}
+
 static struct GNUNET_GC_Configuration *cfg;
 
 static char *
@@ -145,7 +154,7 @@
   myURI = NULL;
   ret = GNUNET_ECRS_search (NULL,
                             cfg,
-                            *uri, 0, &searchCB, &myURI, &testTerminate, NULL);
+                            *uri, 0, &searchCB, &myURI, &testTerminateNC, 
&myURI);
   GNUNET_ECRS_uri_destroy (*uri);
   *uri = myURI;
   if ((ret != GNUNET_SYSERR) && (myURI != NULL))





reply via email to

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