X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=amp_filter.c;h=9484966380a3610a8a0bab0a7eeef4bc67f9a21f;hp=2edfdd5879913ab9c66c8146e81e5c6a508f257f;hb=6ca50bc4766fab54698a6c86b5395a49221c3408;hpb=c36307a2819b65845568696808430a3753e658e4 diff --git a/amp_filter.c b/amp_filter.c index 2edfdd58..94849663 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. */ @@ -34,18 +34,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; }