X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audioc.c;h=666990dba411e65b4dfff4d4d227332e7401ac92;hp=a8f88e315403955fbc04539595ad19236e13c9f2;hb=de9a70360fcd3b5285d280ad1f229f679d453603;hpb=3f885cd259fef0d8522bfc358defdc2345c5923a;ds=inline diff --git a/audioc.c b/audioc.c index a8f88e31..666990db 100644 --- a/audioc.c +++ b/audioc.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2008 Andre Noll + * Copyright (C) 2005-2009 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -21,7 +21,8 @@ INIT_AUDIOC_ERRLISTS; /** the gengetopt structure containing command line args */ struct audioc_args_info conf; -INIT_STDERR_LOGGING(conf.loglevel_arg); +static int loglevel; +INIT_STDERR_LOGGING(loglevel); static char *concat_args(unsigned argc, char * const *argv) { @@ -87,6 +88,7 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } } + loglevel = get_loglevel_by_name(conf.loglevel_arg); args = conf.inputs_num? concat_args(conf.inputs_num, conf.inputs) : para_strdup("stat");