diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-01-13 19:47:51 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-01-13 19:47:51 +0000 |
commit | a37183bb1f137d8a0457fc9c2428219e337cd6a7 (patch) | |
tree | 97487ef7ba9294aaff19885ffb9d42ac687b4570 /src/hello | |
parent | bcc04f0a5babd8283ff50c5dd13e0afccdb2e5f4 (diff) | |
download | gnunet-a37183bb1f137d8a0457fc9c2428219e337cd6a7.tar.gz gnunet-a37183bb1f137d8a0457fc9c2428219e337cd6a7.zip |
- fix compilation
Diffstat (limited to 'src/hello')
-rw-r--r-- | src/hello/address.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/hello/address.c b/src/hello/address.c index 67ad8a060..ae839155c 100644 --- a/src/hello/address.c +++ b/src/hello/address.c | |||
@@ -29,6 +29,20 @@ | |||
29 | 29 | ||
30 | 30 | ||
31 | /** | 31 | /** |
32 | * Get the size of an address struct. | ||
33 | * | ||
34 | * @param address address | ||
35 | * @return the size | ||
36 | */ | ||
37 | size_t | ||
38 | GNUNET_HELLO_address_get_size (const struct GNUNET_HELLO_Address * address) | ||
39 | { | ||
40 | return sizeof (struct GNUNET_HELLO_Address) + address->address_length + | ||
41 | strlen (address->transport_name) + 1; | ||
42 | } | ||
43 | |||
44 | |||
45 | /** | ||
32 | * Allocate an address struct. | 46 | * Allocate an address struct. |
33 | * | 47 | * |
34 | * @param peer the peer | 48 | * @param peer the peer |
@@ -64,20 +78,6 @@ GNUNET_HELLO_address_allocate (const struct GNUNET_PeerIdentity *peer, | |||
64 | 78 | ||
65 | 79 | ||
66 | /** | 80 | /** |
67 | * Get the size of an address struct. | ||
68 | * | ||
69 | * @param address address | ||
70 | * @return the size | ||
71 | */ | ||
72 | size_t | ||
73 | GNUNET_HELLO_address_get_size (const struct GNUNET_HELLO_Address * address) | ||
74 | { | ||
75 | return sizeof (struct GNUNET_HELLO_Address) + address->address_length + | ||
76 | strlen (address->transport_name) + 1; | ||
77 | } | ||
78 | |||
79 | |||
80 | /** | ||
81 | * Copy an address struct. | 81 | * Copy an address struct. |
82 | * | 82 | * |
83 | * @param address address to copy | 83 | * @param address address to copy |