/*
- * Copyright (C) 2009-2012 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2009-2013 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
/** Data specific to the amplify filter. */
struct private_amp_data {
- /** Points to the configuration data for this instance of this filter. */
/** Amplification factor. */
unsigned amp;
};
static int amp_parse_config(int argc, char **argv, void **config)
{
- struct amp_filter_args_info *amp_conf = para_calloc(sizeof(*amp_conf));
+ struct amp_filter_args_info *conf = para_calloc(sizeof(*conf));
int ret = -E_AMP_SYNTAX;
- if (amp_filter_cmdline_parser(argc, argv, amp_conf))
- goto err;
+ amp_filter_cmdline_parser(argc, argv, conf);
ret = -ERRNO_TO_PARA_ERROR(EINVAL);
- if (amp_conf->amp_arg < 0)
+ if (conf->amp_arg < 0)
goto err;
- *config = amp_conf;
+ *config = conf;
return 1;
err:
- free(amp_conf);
+ free(conf);
return ret;
}