* @param client unused
* @param hdr inbound message from the FIFO
*/
-static void
+static int
stdin_send (void *cls, void *client, const struct GNUNET_MessageHeader *hdr)
{
struct SendBuffer *write_pout = cls;
&in[1],
payload_size);
write_pout->size += payload_size;
+ return GNUNET_OK;
}
* @param client unused
* @param hdr the message we received to copy to the buffer
*/
-static void
+static int
file_in_send (void *cls, void *client, const struct GNUNET_MessageHeader *hdr)
{
struct SendBuffer *write_std = cls;
}
memcpy (write_std->buf + write_std->size, hdr, sendsize);
write_std->size += sendsize;
+ return GNUNET_OK;
}
}
if (NULL == (fpout = fopen (FIFO_FILE2, "w")))
{
- erg = mkfifo (FIFO_FILE2, 0666);
+ mkfifo (FIFO_FILE2, 0666);
fpout = fopen (FIFO_FILE2, "w");
}
if (NULL == fpout)
first = 0;
if (NULL == (fpout = fopen (FIFO_FILE1, "w")))
{
- erg = mkfifo (FIFO_FILE1, 0666);
+ mkfifo (FIFO_FILE1, 0666);
fpout = fopen (FIFO_FILE1, "w");
}
if (NULL == fpout)