diff options
Diffstat (limited to 'src/peerinfo/test_peerinfo_api_friend_only.c')
-rw-r--r-- | src/peerinfo/test_peerinfo_api_friend_only.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/peerinfo/test_peerinfo_api_friend_only.c b/src/peerinfo/test_peerinfo_api_friend_only.c index e2c4ec574..3b4eeb8f5 100644 --- a/src/peerinfo/test_peerinfo_api_friend_only.c +++ b/src/peerinfo/test_peerinfo_api_friend_only.c | |||
@@ -42,15 +42,15 @@ static unsigned int retries; | |||
42 | 42 | ||
43 | static int global_ret; | 43 | static int global_ret; |
44 | 44 | ||
45 | static size_t | 45 | static ssize_t |
46 | address_generator (void *cls, size_t max, void *buf) | 46 | address_generator (void *cls, size_t max, void *buf) |
47 | { | 47 | { |
48 | size_t *agc = cls; | 48 | size_t *agc = cls; |
49 | size_t ret; | 49 | ssize_t ret; |
50 | struct GNUNET_HELLO_Address address; | 50 | struct GNUNET_HELLO_Address address; |
51 | 51 | ||
52 | if (0 == *agc) | 52 | if (0 == *agc) |
53 | return 0; | 53 | return GNUNET_SYSERR; /* Done */ |
54 | memset (&address.peer, 0, sizeof (struct GNUNET_PeerIdentity)); | 54 | memset (&address.peer, 0, sizeof (struct GNUNET_PeerIdentity)); |
55 | address.address = "Address"; | 55 | address.address = "Address"; |
56 | address.transport_name = "peerinfotest"; | 56 | address.transport_name = "peerinfotest"; |