diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-09-27 11:02:56 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-09-27 11:02:56 +0200 |
commit | 7ecc3a03a0670a1620c603502c9958b95e6dc1d0 (patch) | |
tree | 69d76fd05cbf0facae18b99b526c16426bf9b1c6 /src/messenger/messenger_api_list_tunnels.c | |
parent | 1fef34e55a00816bdb237e87ff14d54e6575f763 (diff) | |
download | gnunet-7ecc3a03a0670a1620c603502c9958b95e6dc1d0.tar.gz gnunet-7ecc3a03a0670a1620c603502c9958b95e6dc1d0.zip |
-indentation of parameters
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/messenger/messenger_api_list_tunnels.c')
-rw-r--r-- | src/messenger/messenger_api_list_tunnels.c | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/messenger/messenger_api_list_tunnels.c b/src/messenger/messenger_api_list_tunnels.c index 990e36878..7e77d8f2f 100644 --- a/src/messenger/messenger_api_list_tunnels.c +++ b/src/messenger/messenger_api_list_tunnels.c | |||
@@ -53,14 +53,16 @@ clear_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels) | |||
53 | } | 53 | } |
54 | 54 | ||
55 | static int | 55 | static int |
56 | compare_list_tunnels (void *cls, struct GNUNET_MESSENGER_ListTunnel *element0, | 56 | compare_list_tunnels (void *cls, |
57 | struct GNUNET_MESSENGER_ListTunnel *element0, | ||
57 | struct GNUNET_MESSENGER_ListTunnel *element1) | 58 | struct GNUNET_MESSENGER_ListTunnel *element1) |
58 | { | 59 | { |
59 | return ((int) element0->peer) - ((int) element1->peer); | 60 | return ((int) element0->peer) - ((int) element1->peer); |
60 | } | 61 | } |
61 | 62 | ||
62 | void | 63 | void |
63 | add_to_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const struct GNUNET_PeerIdentity *peer) | 64 | add_to_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, |
65 | const struct GNUNET_PeerIdentity *peer) | ||
64 | { | 66 | { |
65 | GNUNET_assert((tunnels) && (peer)); | 67 | GNUNET_assert((tunnels) && (peer)); |
66 | 68 | ||
@@ -73,7 +75,9 @@ add_to_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const struct | |||
73 | } | 75 | } |
74 | 76 | ||
75 | struct GNUNET_MESSENGER_ListTunnel* | 77 | struct GNUNET_MESSENGER_ListTunnel* |
76 | find_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const struct GNUNET_PeerIdentity *peer, size_t *index) | 78 | find_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, |
79 | const struct GNUNET_PeerIdentity *peer, | ||
80 | size_t *index) | ||
77 | { | 81 | { |
78 | GNUNET_assert((tunnels) && (peer)); | 82 | GNUNET_assert((tunnels) && (peer)); |
79 | 83 | ||
@@ -98,7 +102,8 @@ find_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const struct GN | |||
98 | } | 102 | } |
99 | 103 | ||
100 | int | 104 | int |
101 | contains_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const struct GNUNET_PeerIdentity *peer) | 105 | contains_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, |
106 | const struct GNUNET_PeerIdentity *peer) | ||
102 | { | 107 | { |
103 | GNUNET_assert((tunnels) && (peer)); | 108 | GNUNET_assert((tunnels) && (peer)); |
104 | 109 | ||
@@ -106,7 +111,8 @@ contains_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const struc | |||
106 | } | 111 | } |
107 | 112 | ||
108 | struct GNUNET_MESSENGER_ListTunnel* | 113 | struct GNUNET_MESSENGER_ListTunnel* |
109 | remove_from_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, struct GNUNET_MESSENGER_ListTunnel *element) | 114 | remove_from_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, |
115 | struct GNUNET_MESSENGER_ListTunnel *element) | ||
110 | { | 116 | { |
111 | GNUNET_assert((tunnels) && (element)); | 117 | GNUNET_assert((tunnels) && (element)); |
112 | 118 | ||
@@ -120,7 +126,8 @@ remove_from_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, struct G | |||
120 | } | 126 | } |
121 | 127 | ||
122 | void | 128 | void |
123 | load_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const char *path) | 129 | load_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, |
130 | const char *path) | ||
124 | { | 131 | { |
125 | GNUNET_assert((tunnels) && (path)); | 132 | GNUNET_assert((tunnels) && (path)); |
126 | 133 | ||
@@ -154,7 +161,8 @@ load_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const char *pat | |||
154 | } | 161 | } |
155 | 162 | ||
156 | void | 163 | void |
157 | save_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, const char *path) | 164 | save_list_tunnels (struct GNUNET_MESSENGER_ListTunnels *tunnels, |
165 | const char *path) | ||
158 | { | 166 | { |
159 | GNUNET_assert((tunnels) && (path)); | 167 | GNUNET_assert((tunnels) && (path)); |
160 | 168 | ||