Add some more FEC source code documentation.
[paraslash.git] / afh.c
diff --git a/afh.c b/afh.c
index 2d92d04d0e7b3ad3907410c556c0c447576bd4d6..fad93c49cdca17f54558c2c6cdc25646773bea11 100644 (file)
--- a/afh.c
+++ b/afh.c
@@ -21,7 +21,9 @@ static struct afh_args_info conf;
 const char *status_item_list[] = {STATUS_ITEM_ARRAY};
 
 INIT_AFH_ERRLISTS;
-INIT_STDERR_LOGGING(conf.loglevel_arg)
+
+static int loglevel;
+INIT_STDERR_LOGGING(loglevel)
 
 static void print_info(int audio_format_num, struct afh_info *afhi)
 {
@@ -139,6 +141,7 @@ int main(int argc, char **argv)
 
        afh_cmdline_parser(argc, argv, &conf);
        HANDLE_VERSION_FLAG("afh", conf);
+       loglevel = get_loglevel_by_name(conf.loglevel_arg);
        ret = -E_AFH_SYNTAX;
        if (conf.inputs_num == 0)
                goto out;