diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-13 17:51:29 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-13 17:51:38 +0100 |
commit | 6b659c8a65c34d194d6440489442c411bb3f4c26 (patch) | |
tree | d7ec6931b2ef6267a964ec14819323dbb9833d57 /src/cadet/gnunet-cadet.c | |
parent | aaca8161989c5af3f46251cd3e8d5fb531a5cb01 (diff) | |
download | gnunet-6b659c8a65c34d194d6440489442c411bb3f4c26.tar.gz gnunet-6b659c8a65c34d194d6440489442c411bb3f4c26.zip |
trying to fix #5532
Diffstat (limited to 'src/cadet/gnunet-cadet.c')
-rw-r--r-- | src/cadet/gnunet-cadet.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cadet/gnunet-cadet.c b/src/cadet/gnunet-cadet.c index dba517a7b..932d069a1 100644 --- a/src/cadet/gnunet-cadet.c +++ b/src/cadet/gnunet-cadet.c | |||
@@ -11,7 +11,7 @@ | |||
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 | Affero 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 Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -103,7 +103,7 @@ static struct GNUNET_CADET_GetPath *gpo; | |||
103 | 103 | ||
104 | /** | 104 | /** |
105 | * Active peer listing operation. | 105 | * Active peer listing operation. |
106 | */ | 106 | */ |
107 | static struct GNUNET_CADET_PeersLister *plo; | 107 | static struct GNUNET_CADET_PeersLister *plo; |
108 | 108 | ||
109 | /** | 109 | /** |
@@ -220,7 +220,7 @@ shutdown_task (void *cls) | |||
220 | { | 220 | { |
221 | GNUNET_CADET_channel_destroy (ch); | 221 | GNUNET_CADET_channel_destroy (ch); |
222 | ch = NULL; | 222 | ch = NULL; |
223 | } | 223 | } |
224 | if (NULL != gpo) | 224 | if (NULL != gpo) |
225 | { | 225 | { |
226 | GNUNET_CADET_get_path_cancel (gpo); | 226 | GNUNET_CADET_get_path_cancel (gpo); |
@@ -306,12 +306,12 @@ read_stdio (void *cls) | |||
306 | if (GNUNET_NO == echo) | 306 | if (GNUNET_NO == echo) |
307 | { | 307 | { |
308 | // Use MQ's notification if too much data of stdin is pooring in too fast. | 308 | // Use MQ's notification if too much data of stdin is pooring in too fast. |
309 | if (STREAM_BUFFER_SIZE < sent_pkt) | 309 | if (STREAM_BUFFER_SIZE < sent_pkt) |
310 | { | 310 | { |
311 | GNUNET_MQ_notify_sent (env, mq_cb, cls); | 311 | GNUNET_MQ_notify_sent (env, mq_cb, cls); |
312 | sent_pkt = 0; | 312 | sent_pkt = 0; |
313 | } | 313 | } |
314 | else | 314 | else |
315 | { | 315 | { |
316 | listen_stdio (); | 316 | listen_stdio (); |
317 | } | 317 | } |
@@ -563,7 +563,7 @@ path_callback (void *cls, | |||
563 | ppd->path_length); | 563 | ppd->path_length); |
564 | for (unsigned int i = 0; i < ppd->path_length; i++) | 564 | for (unsigned int i = 0; i < ppd->path_length; i++) |
565 | FPRINTF (stdout, | 565 | FPRINTF (stdout, |
566 | "%s ", | 566 | (i == ppd->target_offset) ? "*%s* " : "%s ", |
567 | GNUNET_i2s (&ppd->path[i])); | 567 | GNUNET_i2s (&ppd->path[i])); |
568 | FPRINTF (stdout, | 568 | FPRINTF (stdout, |
569 | "\n"); | 569 | "\n"); |
@@ -626,7 +626,7 @@ show_peer (void *cls) | |||
626 | GNUNET_CRYPTO_eddsa_public_key_from_string (peer_id, | 626 | GNUNET_CRYPTO_eddsa_public_key_from_string (peer_id, |
627 | strlen (peer_id), | 627 | strlen (peer_id), |
628 | &pid.public_key)) | 628 | &pid.public_key)) |
629 | { | 629 | { |
630 | fprintf (stderr, | 630 | fprintf (stderr, |
631 | _("Invalid peer ID `%s'\n"), | 631 | _("Invalid peer ID `%s'\n"), |
632 | peer_id); | 632 | peer_id); |
@@ -859,7 +859,7 @@ main (int argc, | |||
859 | GNUNET_GETOPT_option_flag ('e', | 859 | GNUNET_GETOPT_option_flag ('e', |
860 | "echo", | 860 | "echo", |
861 | gettext_noop ("Activate echo mode"), | 861 | gettext_noop ("Activate echo mode"), |
862 | &echo), | 862 | &echo), |
863 | GNUNET_GETOPT_option_string ('o', | 863 | GNUNET_GETOPT_option_string ('o', |
864 | "open-port", | 864 | "open-port", |
865 | "SHARED_SECRET", | 865 | "SHARED_SECRET", |