diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
commit | c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch) | |
tree | cac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/transport/transport-testing-loggers.c | |
parent | fbb71d527c7d6babf269a8fefce1db291b9f7068 (diff) | |
download | gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip |
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/transport/transport-testing-loggers.c')
-rw-r--r-- | src/transport/transport-testing-loggers.c | 45 |
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 @@ | |||
1 | |||
2 | /* | 1 | /* |
3 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
4 | Copyright (C) 2016 GNUnet e.V. | 3 | Copyright (C) 2016 GNUnet e.V. |
@@ -34,19 +33,20 @@ | |||
34 | * @param other peer that connected. | 33 | * @param other peer that connected. |
35 | */ | 34 | */ |
36 | void | 35 | void |
37 | GNUNET_TRANSPORT_TESTING_log_connect(void *cls, | 36 | GNUNET_TRANSPORT_TESTING_log_connect (void *cls, |
38 | struct GNUNET_TRANSPORT_TESTING_PeerContext *me, | 37 | struct |
39 | const struct GNUNET_PeerIdentity *other) | 38 | GNUNET_TRANSPORT_TESTING_PeerContext *me, |
39 | const struct GNUNET_PeerIdentity *other) | ||
40 | { | 40 | { |
41 | char *ps; | 41 | char *ps; |
42 | 42 | ||
43 | ps = GNUNET_strdup(GNUNET_i2s(&me->id)); | 43 | ps = GNUNET_strdup (GNUNET_i2s (&me->id)); |
44 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, | 44 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
45 | "Peer %s connected to %u (%s)!\n", | 45 | "Peer %s connected to %u (%s)!\n", |
46 | GNUNET_i2s(other), | 46 | GNUNET_i2s (other), |
47 | me->no, | 47 | me->no, |
48 | ps); | 48 | ps); |
49 | GNUNET_free(ps); | 49 | GNUNET_free (ps); |
50 | } | 50 | } |
51 | 51 | ||
52 | 52 | ||
@@ -59,19 +59,22 @@ GNUNET_TRANSPORT_TESTING_log_connect(void *cls, | |||
59 | * @param other peer that disconnected. | 59 | * @param other peer that disconnected. |
60 | */ | 60 | */ |
61 | void | 61 | void |
62 | GNUNET_TRANSPORT_TESTING_log_disconnect(void *cls, | 62 | GNUNET_TRANSPORT_TESTING_log_disconnect (void *cls, |
63 | struct GNUNET_TRANSPORT_TESTING_PeerContext *me, | 63 | struct |
64 | const struct GNUNET_PeerIdentity *other) | 64 | GNUNET_TRANSPORT_TESTING_PeerContext * |
65 | me, | ||
66 | const struct | ||
67 | GNUNET_PeerIdentity *other) | ||
65 | { | 68 | { |
66 | char *ps; | 69 | char *ps; |
67 | 70 | ||
68 | ps = GNUNET_strdup(GNUNET_i2s(&me->id)); | 71 | ps = GNUNET_strdup (GNUNET_i2s (&me->id)); |
69 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, | 72 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
70 | "Peer `%s' disconnected from %u (%s)!\n", | 73 | "Peer `%s' disconnected from %u (%s)!\n", |
71 | GNUNET_i2s(other), | 74 | GNUNET_i2s (other), |
72 | me->no, | 75 | me->no, |
73 | ps); | 76 | ps); |
74 | GNUNET_free(ps); | 77 | GNUNET_free (ps); |
75 | } | 78 | } |
76 | 79 | ||
77 | /* end of transport-testing-loggers.c */ | 80 | /* end of transport-testing-loggers.c */ |