From af107a198dce152da74590f2eec5a320002c0f82 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sun, 10 Feb 2002 17:57:49 +0000 Subject: 2002-02-10 Marcus Brinkmann * main.c: Include `argp.h' and `version.h'. (argp_program_version): New global variable. (tty_name, tty_type, tty_arg): Likewise. (parse_opt): New function. (term_argp): New global variable. (main): Call argp_parse, use new global variables to parse the options. Remove TYPE variable. Get the bootstrap port after checking the argument line. * term.h (pterm_name): Remove variable. (tty_arg): Declare variable. * devio.c (initial_open): Use tty_arg instead pterm_name. (devio_assert_dtr): Likewise. --- term/devio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'term/devio.c') diff --git a/term/devio.c b/term/devio.c index 55b26336..576be5b3 100644 --- a/term/devio.c +++ b/term/devio.c @@ -452,7 +452,7 @@ initial_open () phys_reply = ports_get_send_right (phys_reply_pi); err = device_open_request (device_master, phys_reply, - D_READ|D_WRITE, pterm_name); + D_READ|D_WRITE, tty_arg); if (err) { mach_port_deallocate (mach_task_self (), phys_reply); @@ -496,7 +496,7 @@ devio_assert_dtr () return 0; err = device_open_request (device_master, phys_reply, - D_READ|D_WRITE, pterm_name); + D_READ|D_WRITE, tty_arg); if (err) return err; -- cgit v1.2.3