diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-29 20:47:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-29 20:47:18 +0000 |
commit | 71ea5bd2d05058008e604ffd42993be9c7250e04 (patch) | |
tree | a5074671ddfaa9d1621a4182fc95a91a98b3d536 /src/peerinfo/test_peerinfo_api.c | |
parent | b335777fd435142c16eb05e86c8a64a4b1a45447 (diff) | |
download | gnunet-71ea5bd2d05058008e604ffd42993be9c7250e04.tar.gz gnunet-71ea5bd2d05058008e604ffd42993be9c7250e04.zip |
-fixing indentation
Diffstat (limited to 'src/peerinfo/test_peerinfo_api.c')
-rw-r--r-- | src/peerinfo/test_peerinfo_api.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/peerinfo/test_peerinfo_api.c b/src/peerinfo/test_peerinfo_api.c index 607c1fa4e..fbd12c387 100644 --- a/src/peerinfo/test_peerinfo_api.c +++ b/src/peerinfo/test_peerinfo_api.c | |||
@@ -45,16 +45,17 @@ static struct GNUNET_PEERINFO_Handle *h; | |||
45 | static unsigned int retries; | 45 | static unsigned int retries; |
46 | 46 | ||
47 | static int | 47 | static int |
48 | check_it (void *cls, | 48 | check_it (void *cls, const struct GNUNET_HELLO_Address *address, |
49 | const struct GNUNET_HELLO_Address *address, | 49 | struct GNUNET_TIME_Absolute expiration) |
50 | struct GNUNET_TIME_Absolute expiration) | ||
51 | { | 50 | { |
52 | unsigned int *agc = cls; | 51 | unsigned int *agc = cls; |
53 | 52 | ||
54 | if (address != NULL) | 53 | if (address != NULL) |
55 | { | 54 | { |
56 | GNUNET_assert (0 == strcmp ("peerinfotest", address->transport_name)); | 55 | GNUNET_assert (0 == strcmp ("peerinfotest", address->transport_name)); |
57 | GNUNET_assert (0 == strncmp ("Address", address->address, address->address_length)); | 56 | GNUNET_assert (0 == |
57 | strncmp ("Address", address->address, | ||
58 | address->address_length)); | ||
58 | (*agc) -= (1 << (address->address_length - 1)); | 59 | (*agc) -= (1 << (address->address_length - 1)); |
59 | } | 60 | } |
60 | return GNUNET_OK; | 61 | return GNUNET_OK; |
@@ -75,10 +76,9 @@ address_generator (void *cls, size_t max, void *buf) | |||
75 | address.transport_name = "peerinfotest"; | 76 | address.transport_name = "peerinfotest"; |
76 | address.address_length = *agc; | 77 | address.address_length = *agc; |
77 | ret = | 78 | ret = |
78 | GNUNET_HELLO_add_address (&address, | 79 | GNUNET_HELLO_add_address (&address, |
79 | GNUNET_TIME_relative_to_absolute | 80 | GNUNET_TIME_relative_to_absolute |
80 | (GNUNET_TIME_UNIT_HOURS), buf, | 81 | (GNUNET_TIME_UNIT_HOURS), buf, max); |
81 | max); | ||
82 | (*agc)--; | 82 | (*agc)--; |
83 | return ret; | 83 | return ret; |
84 | } | 84 | } |