X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=osx_write.c;h=8dcfb4cd1fcc32082abeae34bdff3a23214a2f20;hp=2c6fd0d2ef3867d5ad5e1e6d37db9e3b0083722c;hb=35e284e06a5c8e20d02b61fdcb4bcc20b237c1e4;hpb=b66dfd41e268e64b65d2990bdec3d3a7e119e234 diff --git a/osx_write.c b/osx_write.c index 2c6fd0d2..8dcfb4cd 100644 --- a/osx_write.c +++ b/osx_write.c @@ -217,18 +217,18 @@ e0: return ret; } -__malloc static void *osx_write_parse_config_or_die(const char *options) +__malloc static void *osx_write_parse_config_or_die(int argc, char **argv) { struct osx_write_args_info *conf = para_calloc(sizeof(*conf)); /* exits on errors */ - osx_cmdline_parser_string(options, conf, "osx_write"); + osx_write_cmdline_parser(argc, argv, conf); return conf; } static void osx_free_config(void *conf) { - osx_cmdline_parser_free(conf); + osx_write_cmdline_parser_free(conf); } static void osx_write_close(struct writer_node *wn) @@ -326,7 +326,7 @@ void osx_write_init(struct writer *w) { struct osx_write_args_info dummy; - osx_cmdline_parser_init(&dummy); + osx_write_cmdline_parser_init(&dummy); w->close = osx_write_close; w->pre_select = osx_write_pre_select; w->post_select = osx_write_post_select; @@ -336,5 +336,5 @@ void osx_write_init(struct writer *w) .short_help = osx_write_args_info_help, .detailed_help = osx_write_args_info_detailed_help }; - osx_cmdline_parser_free(&dummy); + osx_write_cmdline_parser_free(&dummy); }