-must notify client on timeout
[oweals/gnunet.git] / src / peerinfo / test_peerinfo_api_friend_only.c
index 9526830b3816ecb8d1775b1ae321c8aa05428987..3b4eeb8f5c0a78f05f138f0d29ad7c799ba7a626 100644 (file)
@@ -42,15 +42,15 @@ static unsigned int retries;
 
 static int global_ret;
 
-static size_t
+static ssize_t
 address_generator (void *cls, size_t max, void *buf)
 {
   size_t *agc = cls;
-  size_t ret;
+  ssize_t ret;
   struct GNUNET_HELLO_Address address;
 
   if (0 == *agc)
-    return 0;
+    return GNUNET_SYSERR; /* Done */
   memset (&address.peer, 0, sizeof (struct GNUNET_PeerIdentity));
   address.address = "Address";
   address.transport_name = "peerinfotest";
@@ -129,7 +129,7 @@ process (void *cls, const struct GNUNET_PeerIdentity *peer,
 
 
 static void
-run (void *cls, 
+run (void *cls,
      const struct GNUNET_CONFIGURATION_Handle *cfg,
      struct GNUNET_TESTING_Peer *peer)
 {