From 71234ec0bd16c490239eefcf98069ceb7a7f7618 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 16 Jul 2014 23:53:30 +0200 Subject: Refactor wins_launch_external() Allow for passing an arbitrary number of arguments. This also allows us to remove wins_launch_external2() and use wins_launch_external() at all call sites instead. Signed-off-by: Lukas Fleischer --- src/io.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/io.c') diff --git a/src/io.c b/src/io.c index 95a42d3..0ea6bbf 100644 --- a/src/io.c +++ b/src/io.c @@ -1175,8 +1175,10 @@ void io_log_display(struct io_file *log, const char *msg, child_wait(NULL, NULL, pid); } } else { - if (status_ask_bool(msg) == 1) - wins_launch_external(log->name, pager); + if (status_ask_bool(msg) == 1) { + const char *arg[] = { pager, log->name, NULL }; + wins_launch_external(arg); + } wins_erase_status_bar(); } } -- cgit v1.2.3-54-g00ecf