X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=amp_filter.c;h=90b5660d835de424be32d13b10ee09c63fb5cf2c;hp=2edfdd5879913ab9c66c8146e81e5c6a508f257f;hb=bf1831886b93258ffcec63c47d6737fffff53aae;hpb=c36307a2819b65845568696808430a3753e658e4 diff --git a/amp_filter.c b/amp_filter.c index 2edfdd58..90b5660d 100644 --- a/amp_filter.c +++ b/amp_filter.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Andre Noll + * Copyright (C) 2009-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -22,7 +22,6 @@ extern char *stat_item_values[NUM_STAT_ITEMS]; /** 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; }; @@ -34,18 +33,17 @@ static void amp_close(struct filter_node *fn) 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; }