diff options
Diffstat (limited to 'src/hello/gnunet-hello.c')
-rw-r--r-- | src/hello/gnunet-hello.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/hello/gnunet-hello.c b/src/hello/gnunet-hello.c index f96a999b8..795f4f29b 100644 --- a/src/hello/gnunet-hello.c +++ b/src/hello/gnunet-hello.c | |||
@@ -35,7 +35,7 @@ struct AddContext | |||
35 | * Where to add. | 35 | * Where to add. |
36 | */ | 36 | */ |
37 | char *buf; | 37 | char *buf; |
38 | 38 | ||
39 | /** | 39 | /** |
40 | * Maximum number of bytes left | 40 | * Maximum number of bytes left |
41 | */ | 41 | */ |
@@ -65,7 +65,7 @@ add_to_buf (void *cls, const struct GNUNET_HELLO_Address *address, | |||
65 | struct AddContext *ac = cls; | 65 | struct AddContext *ac = cls; |
66 | size_t ret; | 66 | size_t ret; |
67 | 67 | ||
68 | ret = GNUNET_HELLO_add_address (address, | 68 | ret = GNUNET_HELLO_add_address (address, |
69 | GNUNET_TIME_UNIT_FOREVER_ABS, | 69 | GNUNET_TIME_UNIT_FOREVER_ABS, |
70 | ac->buf, | 70 | ac->buf, |
71 | ac->max); | 71 | ac->max); |
@@ -97,7 +97,7 @@ add_from_hello (void *cls, size_t max, void *buf) | |||
97 | ac.max = max; | 97 | ac.max = max; |
98 | ac.ret = 0; | 98 | ac.ret = 0; |
99 | GNUNET_assert (NULL == | 99 | GNUNET_assert (NULL == |
100 | GNUNET_HELLO_iterate_addresses (*orig, | 100 | GNUNET_HELLO_iterate_addresses (*orig, |
101 | GNUNET_NO, &add_to_buf, | 101 | GNUNET_NO, &add_to_buf, |
102 | &ac)); | 102 | &ac)); |
103 | *orig = NULL; | 103 | *orig = NULL; |
@@ -145,7 +145,7 @@ main (int argc, char *argv[]) | |||
145 | argv[1]); | 145 | argv[1]); |
146 | return 1; | 146 | return 1; |
147 | } | 147 | } |
148 | fh = GNUNET_DISK_file_open (argv[1], | 148 | fh = GNUNET_DISK_file_open (argv[1], |
149 | GNUNET_DISK_OPEN_READ, | 149 | GNUNET_DISK_OPEN_READ, |
150 | GNUNET_DISK_PERM_USER_READ); | 150 | GNUNET_DISK_PERM_USER_READ); |
151 | if (NULL == fh) | 151 | if (NULL == fh) |
@@ -158,8 +158,8 @@ main (int argc, char *argv[]) | |||
158 | } | 158 | } |
159 | { | 159 | { |
160 | char buf[fsize] GNUNET_ALIGN; | 160 | char buf[fsize] GNUNET_ALIGN; |
161 | 161 | ||
162 | GNUNET_assert (fsize == | 162 | GNUNET_assert (fsize == |
163 | GNUNET_DISK_file_read (fh, buf, fsize)); | 163 | GNUNET_DISK_file_read (fh, buf, fsize)); |
164 | GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fh)); | 164 | GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fh)); |
165 | orig = (struct GNUNET_HELLO_Message *) buf; | 165 | orig = (struct GNUNET_HELLO_Message *) buf; |
@@ -174,7 +174,7 @@ main (int argc, char *argv[]) | |||
174 | result = GNUNET_HELLO_create (&pk, &add_from_hello, &orig, | 174 | result = GNUNET_HELLO_create (&pk, &add_from_hello, &orig, |
175 | GNUNET_HELLO_is_friend_only (orig)); | 175 | GNUNET_HELLO_is_friend_only (orig)); |
176 | GNUNET_assert (NULL != result); | 176 | GNUNET_assert (NULL != result); |
177 | fh = GNUNET_DISK_file_open (argv[1], | 177 | fh = GNUNET_DISK_file_open (argv[1], |
178 | GNUNET_DISK_OPEN_WRITE, | 178 | GNUNET_DISK_OPEN_WRITE, |
179 | GNUNET_DISK_PERM_USER_READ | GNUNET_DISK_PERM_USER_WRITE); | 179 | GNUNET_DISK_PERM_USER_READ | GNUNET_DISK_PERM_USER_WRITE); |
180 | if (NULL == fh) | 180 | if (NULL == fh) |