diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-11-29 20:47:18 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-11-29 20:47:18 +0000 |
commit | d876c3f1bd474954fc6b97d905656d785652bbd5 (patch) | |
tree | a5074671ddfaa9d1621a4182fc95a91a98b3d536 /src/peerinfo | |
parent | f19e8f00b50fe9ab664900e98798906f5bb39619 (diff) |
-fixing indentation
git-svn-id: https://gnunet.org/svn/gnunet@18394 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/peerinfo')
-rw-r--r-- | src/peerinfo/gnunet-service-peerinfo.c | 7 | ||||
-rwxr-xr-x | src/peerinfo/perf_peerinfo_api.c | 6 | ||||
-rw-r--r-- | src/peerinfo/test_peerinfo_api.c | 16 |
3 files changed, 14 insertions, 15 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c index fc7cc781f7..799fdc6d84 100644 --- a/src/peerinfo/gnunet-service-peerinfo.c +++ b/src/peerinfo/gnunet-service-peerinfo.c @@ -122,8 +122,7 @@ make_info_message (const struct HostEntry *he) * @return GNUNET_NO if expiration smaller than the current time */ static int -discard_expired (void *cls, - const struct GNUNET_HELLO_Address *address, +discard_expired (void *cls, const struct GNUNET_HELLO_Address *address, struct GNUNET_TIME_Absolute expiration) { const struct GNUNET_TIME_Absolute *now = cls; @@ -131,8 +130,8 @@ discard_expired (void *cls, if (now->abs_value > expiration.abs_value) { GNUNET_log (GNUNET_ERROR_TYPE_INFO, - _("Removing expired address of transport `%s'\n"), - address->transport_name); + _("Removing expired address of transport `%s'\n"), + address->transport_name); return GNUNET_NO; } return GNUNET_OK; diff --git a/src/peerinfo/perf_peerinfo_api.c b/src/peerinfo/perf_peerinfo_api.c index c4e6dcc129..38bbb828f2 100755 --- a/src/peerinfo/perf_peerinfo_api.c +++ b/src/peerinfo/perf_peerinfo_api.c @@ -50,8 +50,8 @@ static struct GNUNET_PeerIdentity pid; static int -check_it (void *cls, - const struct GNUNET_HELLO_Address *address, struct GNUNET_TIME_Absolute expiration) +check_it (void *cls, const struct GNUNET_HELLO_Address *address, + struct GNUNET_TIME_Absolute expiration) { #if DEBUG if (addrlen > 0) @@ -80,7 +80,7 @@ address_generator (void *cls, size_t max, void *buf) address.address = caddress; address.transport_name = "peerinfotest"; ret = - GNUNET_HELLO_add_address (&address, + GNUNET_HELLO_add_address (&address, GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS), buf, max); GNUNET_free (caddress); diff --git a/src/peerinfo/test_peerinfo_api.c b/src/peerinfo/test_peerinfo_api.c index 607c1fa4e9..fbd12c3873 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; static unsigned int retries; static int -check_it (void *cls, - const struct GNUNET_HELLO_Address *address, - struct GNUNET_TIME_Absolute expiration) +check_it (void *cls, const struct GNUNET_HELLO_Address *address, + struct GNUNET_TIME_Absolute expiration) { unsigned int *agc = cls; if (address != NULL) { GNUNET_assert (0 == strcmp ("peerinfotest", address->transport_name)); - GNUNET_assert (0 == strncmp ("Address", address->address, address->address_length)); + GNUNET_assert (0 == + strncmp ("Address", address->address, + address->address_length)); (*agc) -= (1 << (address->address_length - 1)); } return GNUNET_OK; @@ -75,10 +76,9 @@ address_generator (void *cls, size_t max, void *buf) address.transport_name = "peerinfotest"; address.address_length = *agc; ret = - GNUNET_HELLO_add_address (&address, - GNUNET_TIME_relative_to_absolute - (GNUNET_TIME_UNIT_HOURS), buf, - max); + GNUNET_HELLO_add_address (&address, + GNUNET_TIME_relative_to_absolute + (GNUNET_TIME_UNIT_HOURS), buf, max); (*agc)--; return ret; } |