aboutsummaryrefslogtreecommitdiff
path: root/src/hello/test_hello.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-29 20:47:18 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-29 20:47:18 +0000
commit71ea5bd2d05058008e604ffd42993be9c7250e04 (patch)
treea5074671ddfaa9d1621a4182fc95a91a98b3d536 /src/hello/test_hello.c
parentb335777fd435142c16eb05e86c8a64a4b1a45447 (diff)
downloadgnunet-71ea5bd2d05058008e604ffd42993be9c7250e04.tar.gz
gnunet-71ea5bd2d05058008e604ffd42993be9c7250e04.zip
-fixing indentation
Diffstat (limited to 'src/hello/test_hello.c')
-rw-r--r--src/hello/test_hello.c8
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}