summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing-loggers.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-05 15:09:28 +0200
committerChristian Grothoff <christian@grothoff.org>2019-10-05 15:09:28 +0200
commitc4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch)
treecac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/transport/transport-testing-loggers.c
parentfbb71d527c7d6babf269a8fefce1db291b9f7068 (diff)
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/transport/transport-testing-loggers.c')
-rw-r--r--src/transport/transport-testing-loggers.c45
1 files changed, 24 insertions, 21 deletions
diff --git a/src/transport/transport-testing-loggers.c b/src/transport/transport-testing-loggers.c
index 5fb7f2233..0e539eac0 100644
--- a/src/transport/transport-testing-loggers.c
+++ b/src/transport/transport-testing-loggers.c
@@ -1,4 +1,3 @@
-
/*
This file is part of GNUnet.
Copyright (C) 2016 GNUnet e.V.
@@ -34,19 +33,20 @@
* @param other peer that connected.
*/
void
-GNUNET_TRANSPORT_TESTING_log_connect(void *cls,
- struct GNUNET_TRANSPORT_TESTING_PeerContext *me,
- const struct GNUNET_PeerIdentity *other)
+GNUNET_TRANSPORT_TESTING_log_connect (void *cls,
+ struct
+ GNUNET_TRANSPORT_TESTING_PeerContext *me,
+ const struct GNUNET_PeerIdentity *other)
{
char *ps;
- ps = GNUNET_strdup(GNUNET_i2s(&me->id));
- GNUNET_log(GNUNET_ERROR_TYPE_INFO,
- "Peer %s connected to %u (%s)!\n",
- GNUNET_i2s(other),
- me->no,
- ps);
- GNUNET_free(ps);
+ ps = GNUNET_strdup (GNUNET_i2s (&me->id));
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Peer %s connected to %u (%s)!\n",
+ GNUNET_i2s (other),
+ me->no,
+ ps);
+ GNUNET_free (ps);
}
@@ -59,19 +59,22 @@ GNUNET_TRANSPORT_TESTING_log_connect(void *cls,
* @param other peer that disconnected.
*/
void
-GNUNET_TRANSPORT_TESTING_log_disconnect(void *cls,
- struct GNUNET_TRANSPORT_TESTING_PeerContext *me,
- const struct GNUNET_PeerIdentity *other)
+GNUNET_TRANSPORT_TESTING_log_disconnect (void *cls,
+ struct
+ GNUNET_TRANSPORT_TESTING_PeerContext *
+ me,
+ const struct
+ GNUNET_PeerIdentity *other)
{
char *ps;
- ps = GNUNET_strdup(GNUNET_i2s(&me->id));
- GNUNET_log(GNUNET_ERROR_TYPE_INFO,
- "Peer `%s' disconnected from %u (%s)!\n",
- GNUNET_i2s(other),
- me->no,
- ps);
- GNUNET_free(ps);
+ ps = GNUNET_strdup (GNUNET_i2s (&me->id));
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Peer `%s' disconnected from %u (%s)!\n",
+ GNUNET_i2s (other),
+ me->no,
+ ps);
+ GNUNET_free (ps);
}
/* end of transport-testing-loggers.c */