X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=recv.c;h=57931943b4a02bdcaa501d0a149388c7d1874a0c;hp=d01dab68847fc93912edb7e9c7a1e873cf11a1e5;hb=c4d243653174f3f4ffc331a4bfc54de94d612f34;hpb=aef566e9c8680629bac1ea84893b8b3ccd13da77 diff --git a/recv.c b/recv.c index d01dab68..57931943 100644 --- a/recv.c +++ b/recv.c @@ -9,6 +9,7 @@ #include #include #include +#include #include "para.h" #include "list.h" @@ -20,9 +21,10 @@ #include "string.h" #include "error.h" #include "stdout.h" +#include "buffer_tree.h" -/** the gengetopt args info struct */ -struct recv_args_info conf; +/** The gengetopt args info struct. */ +static struct recv_args_info conf; static int loglevel; /** Always log to stderr. */ @@ -95,6 +97,9 @@ int main(int argc, char *argv[]) goto out; r_opened = 1; + if (conf.buffer_tree_given) + sot.btrn = btr_new_node("stdout", rn.btrn, NULL); + stdout_set_defaults(&sot); sot.bufp = &rn.buf; sot.loaded = &rn.loaded;