diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-15 14:27:01 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-15 14:27:01 +0000 |
commit | f8ef504cc5e9c2788cacddad202fec3f390f1980 (patch) | |
tree | 9eb6a2809dab0d0a9ff71129178d22cf3dadfea9 /src/hello/hello.c | |
parent | eed7f472501226b6d6c4f32d3c88d14123f74236 (diff) | |
download | gnunet-f8ef504cc5e9c2788cacddad202fec3f390f1980.tar.gz gnunet-f8ef504cc5e9c2788cacddad202fec3f390f1980.zip |
-minor NSE cleanup
Diffstat (limited to 'src/hello/hello.c')
-rw-r--r-- | src/hello/hello.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/hello/hello.c b/src/hello/hello.c index b43723f08..53003e296 100644 --- a/src/hello/hello.c +++ b/src/hello/hello.c | |||
@@ -40,14 +40,14 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
40 | * 1) transport-name (0-terminated) | 40 | * 1) transport-name (0-terminated) |
41 | * 2) address-length (uint16_t, network byte order; possibly | 41 | * 2) address-length (uint16_t, network byte order; possibly |
42 | * unaligned!) | 42 | * unaligned!) |
43 | * 3) address expiration (GNUNET_TIME_AbsoluteNBO); possibly | 43 | * 3) address expiration (`struct GNUNET_TIME_AbsoluteNBO`); possibly |
44 | * unaligned!) | 44 | * unaligned!) |
45 | * 4) address (address-length bytes; possibly unaligned!) | 45 | * 4) address (address-length bytes; possibly unaligned!) |
46 | */ | 46 | */ |
47 | struct GNUNET_HELLO_Message | 47 | struct GNUNET_HELLO_Message |
48 | { | 48 | { |
49 | /** | 49 | /** |
50 | * Type will be GNUNET_MESSAGE_TYPE_HELLO. | 50 | * Type will be #GNUNET_MESSAGE_TYPE_HELLO. |
51 | */ | 51 | */ |
52 | struct GNUNET_MessageHeader header; | 52 | struct GNUNET_MessageHeader header; |
53 | 53 | ||
@@ -93,7 +93,7 @@ struct GNUNET_HELLO_ParseUriContext | |||
93 | const char *pos; | 93 | const char *pos; |
94 | 94 | ||
95 | /** | 95 | /** |
96 | * Set to GNUNET_SYSERR to indicate parse errors. | 96 | * Set to #GNUNET_SYSERR to indicate parse errors. |
97 | */ | 97 | */ |
98 | int ret; | 98 | int ret; |
99 | 99 | ||
@@ -107,7 +107,7 @@ struct GNUNET_HELLO_ParseUriContext | |||
107 | /** Return HELLO type | 107 | /** Return HELLO type |
108 | * | 108 | * |
109 | * @param h HELLO Message to test | 109 | * @param h HELLO Message to test |
110 | * @return GNUNET_YES or GNUNET_NO | 110 | * @return #GNUNET_YES or #GNUNET_NO |
111 | */ | 111 | */ |
112 | int | 112 | int |
113 | GNUNET_HELLO_is_friend_only (const struct GNUNET_HELLO_Message *h) | 113 | GNUNET_HELLO_is_friend_only (const struct GNUNET_HELLO_Message *h) |
@@ -124,8 +124,8 @@ GNUNET_HELLO_is_friend_only (const struct GNUNET_HELLO_Message *h) | |||
124 | * the given buffer using the format of HELLOs. | 124 | * the given buffer using the format of HELLOs. |
125 | * | 125 | * |
126 | * @param address the address | 126 | * @param address the address |
127 | * @param expiration expiration for the address | 127 | * @param expiration expiration for the @a address |
128 | * @param target where to copy the address | 128 | * @param target where to copy the @a address |
129 | * @param max maximum number of bytes to copy to target | 129 | * @param max maximum number of bytes to copy to target |
130 | * @return number of bytes copied, 0 if | 130 | * @return number of bytes copied, 0 if |
131 | * the target buffer was not big enough. | 131 | * the target buffer was not big enough. |
@@ -165,7 +165,9 @@ GNUNET_HELLO_add_address (const struct GNUNET_HELLO_Address *address, | |||
165 | * @return size of the entry, or 0 if max is not large enough | 165 | * @return size of the entry, or 0 if max is not large enough |
166 | */ | 166 | */ |
167 | static size_t | 167 | static size_t |
168 | get_hello_address_size (const char *buf, size_t max, uint16_t * ralen) | 168 | get_hello_address_size (const char *buf, |
169 | size_t max, | ||
170 | uint16_t *ralen) | ||
169 | { | 171 | { |
170 | const char *pos; | 172 | const char *pos; |
171 | uint16_t alen; | 173 | uint16_t alen; |
@@ -260,7 +262,7 @@ GNUNET_HELLO_create (const struct GNUNET_CRYPTO_EccPublicSignKey *publicKey, | |||
260 | * @param return_modified if a modified copy should be returned, | 262 | * @param return_modified if a modified copy should be returned, |
261 | * otherwise NULL will be returned | 263 | * otherwise NULL will be returned |
262 | * @param it iterator to call on each address | 264 | * @param it iterator to call on each address |
263 | * @param it_cls closure for it | 265 | * @param it_cls closure for @a it |
264 | * @return modified HELLO message | 266 | * @return modified HELLO message |
265 | */ | 267 | */ |
266 | struct GNUNET_HELLO_Message * | 268 | struct GNUNET_HELLO_Message * |