X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=osx_write.c;h=69a781cc1b385b3e92009b6291eed4835ee895b9;hp=0f9d9605926a81fa5be0c4643ca6565fbe0391c2;hb=8fa50e3e39b4f65dea2a694dc064038a41036642;hpb=c4bfb18b78b3935b8dbf68f70b219cfb2a192979 diff --git a/osx_write.c b/osx_write.c index 0f9d9605..69a781cc 100644 --- a/osx_write.c +++ b/osx_write.c @@ -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; } @@ -309,10 +309,9 @@ static void osx_write_post_select(__a_unused struct sched *s, struct task *t) AudioOutputUnitStop(powd->audio_unit); AudioUnitUninitialize(powd->audio_unit); CloseComponent(powd->audio_unit); - btr_remove_node(powd->callback_btrn); - btr_free_node(powd->callback_btrn); + btr_remove_node(&powd->callback_btrn); remove_btrn: - btr_remove_node(btrn); + btr_remove_node(&wn->btrn); PARA_NOTICE_LOG("%s\n", para_strerror(-ret)); out: t->error = ret;