diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2002-02-10 17:57:49 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2002-02-10 17:57:49 +0000 |
commit | af107a198dce152da74590f2eec5a320002c0f82 (patch) | |
tree | a61f662ce5ca243502cbff9de99984bf6a8e66f1 /term/devio.c | |
parent | 679bd94f4976349c7d8e95cce9c2b1577335f548 (diff) |
2002-02-10 Marcus Brinkmann <marcus@gnu.org>
* 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.
Diffstat (limited to 'term/devio.c')
-rw-r--r-- | term/devio.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |