aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/test_peerinfo_api.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/peerinfo/test_peerinfo_api.c
parentb335777fd435142c16eb05e86c8a64a4b1a45447 (diff)
downloadgnunet-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.c16
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;
45static unsigned int retries; 45static unsigned int retries;
46 46
47static int 47static int
48check_it (void *cls, 48check_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}