aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-communicator-unix.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-18 00:44:39 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-18 00:44:39 +0200
commit7f4ddbcab8598e3d5e29c23ce883cdfa664408f1 (patch)
tree5f1b18463f641f24fad519e0aefb60b97d707b52 /src/transport/gnunet-communicator-unix.c
parent28ab2c446fba4980a8295d59fdf203a028a35dd6 (diff)
downloadgnunet-7f4ddbcab8598e3d5e29c23ce883cdfa664408f1.tar.gz
gnunet-7f4ddbcab8598e3d5e29c23ce883cdfa664408f1.zip
merge flags into enum for GNUNET_DISK_pipe() API, fixing #6188
Diffstat (limited to 'src/transport/gnunet-communicator-unix.c')
-rw-r--r--src/transport/gnunet-communicator-unix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transport/gnunet-communicator-unix.c b/src/transport/gnunet-communicator-unix.c
index 6ea0ea360..d7e18f87a 100644
--- a/src/transport/gnunet-communicator-unix.c
+++ b/src/transport/gnunet-communicator-unix.c
@@ -673,7 +673,8 @@ setup_queue (const struct GNUNET_PeerIdentity *target,
673 queue->qh = GNUNET_TRANSPORT_communicator_mq_add (ch, 673 queue->qh = GNUNET_TRANSPORT_communicator_mq_add (ch,
674 &queue->target, 674 &queue->target,
675 foreign_addr, 675 foreign_addr,
676 UNIX_MTU - sizeof (struct UNIXMessage), 676 UNIX_MTU - sizeof (struct
677 UNIXMessage),
677 GNUNET_TRANSPORT_QUEUE_LENGTH_UNLIMITED, 678 GNUNET_TRANSPORT_QUEUE_LENGTH_UNLIMITED,
678 0, 679 0,
679 GNUNET_NT_LOOPBACK, 680 GNUNET_NT_LOOPBACK,
@@ -799,7 +800,7 @@ select_read_cb (void *cls)
799 /* ensure aligned access */ 800 /* ensure aligned access */
800 memcpy (&al_hdr, currhdr, sizeof(al_hdr)); 801 memcpy (&al_hdr, currhdr, sizeof(al_hdr));
801 if ((tsize < sizeof(struct GNUNET_MessageHeader)) || 802 if ((tsize < sizeof(struct GNUNET_MessageHeader)) ||
802 (tsize != ntohs(al_hdr.size))) 803 (tsize != ntohs (al_hdr.size)))
803 { 804 {
804 GNUNET_break_op (0); 805 GNUNET_break_op (0);
805 return; 806 return;