diff options
Diffstat (limited to 'src/hello/test_hello.c')
-rw-r--r-- | src/hello/test_hello.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/hello/test_hello.c b/src/hello/test_hello.c index ca69dfc18..eb15668f4 100644 --- a/src/hello/test_hello.c +++ b/src/hello/test_hello.c | |||
@@ -47,8 +47,8 @@ my_addr_gen (void *cls, size_t max, void *buf) | |||
47 | address.transport_name = "test"; | 47 | address.transport_name = "test"; |
48 | address.address_length = *i; | 48 | address.address_length = *i; |
49 | ret = | 49 | ret = |
50 | GNUNET_HELLO_add_address (&address, GNUNET_TIME_absolute_get (), | 50 | GNUNET_HELLO_add_address (&address, GNUNET_TIME_absolute_get (), buf, |
51 | buf, max); | 51 | max); |
52 | (*i)--; | 52 | (*i)--; |
53 | return ret; | 53 | return ret; |
54 | } | 54 | } |
@@ -67,7 +67,9 @@ check_addr (void *cls, const struct GNUNET_HELLO_Address *address, | |||
67 | GNUNET_assert (address->address_length > 0); | 67 | GNUNET_assert (address->address_length > 0); |
68 | GNUNET_assert (*i & (1 << (address->address_length - 1))); | 68 | GNUNET_assert (*i & (1 << (address->address_length - 1))); |
69 | *i -= (1 << (address->address_length - 1)); | 69 | *i -= (1 << (address->address_length - 1)); |
70 | GNUNET_assert (0 == strncmp ("address_information", address->address, address->address_length)); | 70 | GNUNET_assert (0 == |
71 | strncmp ("address_information", address->address, | ||
72 | address->address_length)); | ||
71 | GNUNET_assert (0 == strcmp ("test", address->transport_name)); | 73 | GNUNET_assert (0 == strcmp ("test", address->transport_name)); |
72 | return GNUNET_OK; | 74 | return GNUNET_OK; |
73 | } | 75 | } |