projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'athcx/master'
[paraslash.git]
/
afh.c
diff --git
a/afh.c
b/afh.c
index
2d92d04
..
fad93c4
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;
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)
{
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);
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;
ret = -E_AFH_SYNTAX;
if (conf.inputs_num == 0)
goto out;