aboutsummaryrefslogtreecommitdiff
path: root/src/hello/gnunet-hello.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hello/gnunet-hello.c')
-rw-r--r--src/hello/gnunet-hello.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hello/gnunet-hello.c b/src/hello/gnunet-hello.c
index e857bde26..93eaeef2b 100644
--- a/src/hello/gnunet-hello.c
+++ b/src/hello/gnunet-hello.c
@@ -85,14 +85,14 @@ add_to_buf (void *cls, const struct GNUNET_HELLO_Address *address,
85 * @param buf where to add the addresses 85 * @param buf where to add the addresses
86 * @return number of bytes added, 0 to terminate 86 * @return number of bytes added, 0 to terminate
87 */ 87 */
88static size_t 88static ssize_t
89add_from_hello (void *cls, size_t max, void *buf) 89add_from_hello (void *cls, size_t max, void *buf)
90{ 90{
91 struct GNUNET_HELLO_Message **orig = cls; 91 struct GNUNET_HELLO_Message **orig = cls;
92 struct AddContext ac; 92 struct AddContext ac;
93 93
94 if (NULL == *orig) 94 if (NULL == *orig)
95 return 0; /* already done */ 95 return GNUNET_SYSERR; /* already done */
96 ac.buf = buf; 96 ac.buf = buf;
97 ac.max = max; 97 ac.max = max;
98 ac.ret = 0; 98 ac.ret = 0;