X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=recv.c;h=df8b9ce99e445f3acce568486c02878276f03576;hp=2386c1ef58930f140109918764acba5266c33a13;hb=3cfb1d880ebf22546486316cb74cce21f007eb07;hpb=f85e05c0b3951e7d3119983c118c82d71f2662a3 diff --git a/recv.c b/recv.c index 2386c1ef..df8b9ce9 100644 --- a/recv.c +++ b/recv.c @@ -16,14 +16,16 @@ #include "recv.h" #include "recv.cmdline.h" #include "fd.h" +#include "string.h" #include "error.h" #include "stdout.h" /** the gengetopt args info struct */ struct recv_args_info conf; -/** always log to stderr */ -INIT_STDERR_LOGGING(conf.loglevel_arg); +static int loglevel; +/** Always log to stderr. */ +INIT_STDERR_LOGGING(loglevel); /** init array of error codes used by para_recv */ INIT_RECV_ERRLISTS; @@ -85,6 +87,7 @@ int main(int argc, char *argv[]) PARA_EMERG_LOG("parse failed\n"); goto out; } + loglevel = get_loglevel_by_name(conf.loglevel_arg); r = &receivers[receiver_num]; rn.receiver = r; ret = r->open(&rn);