write: Get rid of gengetopt's string parser.
[paraslash.git] / osx_write.c
index 2c6fd0d2ef3867d5ad5e1e6d37db9e3b0083722c..69a781cc1b385b3e92009b6291eed4835ee895b9 100644 (file)
@@ -217,12 +217,12 @@ 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_cmdline_parser(argc, argv, conf);
        return conf;
 }