diff options
Diffstat (limited to 'src/cadet/test_cadet_local_mq.c')
-rw-r--r-- | src/cadet/test_cadet_local_mq.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/src/cadet/test_cadet_local_mq.c b/src/cadet/test_cadet_local_mq.c index 3089c7fbb..2e9cfa918 100644 --- a/src/cadet/test_cadet_local_mq.c +++ b/src/cadet/test_cadet_local_mq.c | |||
@@ -2,24 +2,22 @@ | |||
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2017 GNUnet e.V. | 3 | Copyright (C) 2017 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | it under the terms of the GNU General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
7 | by the Free Software Foundation; either version 3, or (at your | 7 | by the Free Software Foundation, either version 3 of the License, |
8 | option) any later version. | 8 | or (at your option) any later version. |
9 | 9 | ||
10 | GNUnet is distributed in the hope that it will be useful, but | 10 | GNUnet is distributed in the hope that it will be useful, but |
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with GNUnet; see the file COPYING. If not, write to the | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
18 | Boston, MA 02110-1301, USA. | ||
19 | */ | 17 | */ |
20 | 18 | ||
21 | /** | 19 | /** |
22 | * @file cadet/test_cadet_local.c | 20 | * @file cadet/test_cadet_local_mq.c |
23 | * @brief test cadet local: test of cadet channels with just one peer | 21 | * @brief test cadet local: test of cadet channels with just one peer |
24 | * @author Bartlomiej Polot | 22 | * @author Bartlomiej Polot |
25 | */ | 23 | */ |
@@ -123,7 +121,9 @@ do_shutdown (void *cls) | |||
123 | static void | 121 | static void |
124 | do_abort (void *cls) | 122 | do_abort (void *cls) |
125 | { | 123 | { |
126 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "ABORT from line %ld\n", (long) cls); | 124 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
125 | "ABORT from line %ld\n", | ||
126 | (long) cls); | ||
127 | result = GNUNET_SYSERR; | 127 | result = GNUNET_SYSERR; |
128 | abort_task = NULL; | 128 | abort_task = NULL; |
129 | GNUNET_SCHEDULER_shutdown (); | 129 | GNUNET_SCHEDULER_shutdown (); |
@@ -148,7 +148,8 @@ connected (void *cls, | |||
148 | { | 148 | { |
149 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 149 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
150 | "connected %s, cls: %p\n", | 150 | "connected %s, cls: %p\n", |
151 | GNUNET_i2s(source), cls); | 151 | GNUNET_i2s(source), |
152 | cls); | ||
152 | return channel; | 153 | return channel; |
153 | } | 154 | } |
154 | 155 | ||
@@ -206,7 +207,8 @@ handle_data_received (void *cls, | |||
206 | static void | 207 | static void |
207 | message_sent (void *cls) | 208 | message_sent (void *cls) |
208 | { | 209 | { |
209 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "message sent\n"); | 210 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
211 | "message sent\n"); | ||
210 | } | 212 | } |
211 | 213 | ||
212 | 214 | ||